API DEVELOPER TOOLS/ Email / Account Web Service / Add Campaign

Code Examples

HTML - Form Submit
 Copy code

        <form >


Copy the code, fill out the parameters, and click the Submit button.
** In the case of array parameters,inputs with the same name can be added. Note that the number of objects in the array need to be equal to the number of elements in all the array parameters in the method.

Jquery - Form Manipulation
 Copy code


Copy the code, paste it into script tags, and fill in the parameters.
** Attach a link to the Jquery directory in addition to the code.
** If the parameters are array type - you can add additions of inputs with the same name, Note that the number of organs in an array need to be equal to the number of elements in all parameters of the array type in the method.

 Copy code

    using System;
    using System.Configuration;
    using System.Data;
    using System.Linq;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Xml.Linq;
    using GlobalPulseemService;
    public partial class _Default : System.Web.UI.Page
        //define a Web service proxy object.
        private GlobalPulseemService.PulseemServices proxy; 
        protected void btnAction_Click(object sender, EventArgs e) 
            proxy = new GlobalPulseemService.PulseemServices();


To use the web service on the asp.net platform, follow these steps:

  1. In the Solution Explorer, right click on the project name, right-click "Add" (to expand the options), and select "Service Reference".
    Alternatively, you can select the top menu in "Website" and then select "Add Service Reference".
  2. Click the "Advanced" button at the bottom of the window.
  3. In the new window that opens, click the "Add Web Reference ..." button at the bottom of the window.
  4. Type in the field "URL" link to the API of Pulseem "Http://www.pulseem.co.il/Pulseem/PulseemServices.asmx" and click on the arrow marking.
  5. The interface will then be interfaced with Pulseem. In the "Web reference name:" field, enter the name "GlobalPulseemService" (in order for the code example we provided to work) and click the "Add Reference" button.
  6. After pressing "Add Reference" you will be given the GlobalPulseemService under the App_WebReference folder.
  7. Then open a new page (in our example we called it Default.aspx) and add a button (in our example we called it btnAction) and in its event OnClick add the method as provided.
** You can change the name of the page, the name of the button and the event that triggers the method as long as you maintain the legality of working with asp.net.

 Copy code'>



Copy the code from above and fill in the parameter values
*** Note that only string parameters are written in quotation marks. Int / byte / boolean parameters will be written without quotation marks.

Java - Using Eclipse
 Copy code

    import java.net.URI;
    import org.apache.http.HttpEntity;
    import org.apache.http.HttpResponse;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.methods.HttpGet;
    import org.apache.http.client.methods.HttpRequestBase;
    import org.apache.http.client.utils.URIBuilder;
    import org.apache.http.impl.client.HttpClientBuilder;
    import org.apache.http.util.EntityUtils;

    public class PulseemApi {;
        public static void main(String[] args) {
            try {
                HttpClient client = HttpClientBuilder.create().build();
                ((HttpRequestBase) get).setURI(uri);
                HttpResponse responseGet = client.execute(get);  
                HttpEntity resEntityGet = responseGet.getEntity();  
                if (resEntityGet != null) {  
                    //do something with the response
            } catch (Exception e) {
To use the web service on the eclipse platform, follow these steps:
  1. Download the HttpComponents directory from https://hc.apache.org/downloads.cgi and add the .jar files to the project.
  2. Then create a new class called PulseemApi (so that the code example we provided will work). Note that the public static void main (String [] args) option is selected and click the Finish button.
  3. Copy the code provided and complete the parameters, then run the project.
** Not running under ssl protocol

HAVE QUESTIONS? We will be happy to assist you CONTACT US