fbpx

Add Emercury to Your Website or App

Create integrations that connect Emercury to a CMS, blog, shopping cart, and more. Our API offers in-depth documentation, a download section for various wrappers, and how-to documents. The majority of data and functionality within our web application is accessible, so the integration possibilities are endless.

Not a programmer? Here are a few options that don't involve using our API directly:

What You Can Do with the API

The Emercury API allows you to sync your database with Emercury for better list and campaign management. Create client portals, add a subscribe form to your checkout page, segment campaigns based on purchase history, link campaign stats to your database, sync email activity with your database, and more.

Add Emercury to Your Website or App

Please use this API url to send your requests: https://panel.emercury.net/api.php

***note: please download the example of the sample API file: https://panel.emercury.net/files/download.php?sample

Test Scenario (This is not a real account or API key)

Here is the common authorization request:
<?xml version="1.0" encoding="utf-8 "? >
<request>
<user mail="test@test.com" API_key ="12345ABCD EF67890GHIJK"></user>
</request>
– <request> – query container that includes all required fields
– <user> – client's information (email and API key)
To call any function tag <method></method > used.

addAutoresponder

addAutoresponder 123456 Autoresponder Name Some Name test@test.com test@test.com some html

Recipient First Name ]]>
some text

Recipient First Name ]]>
text,html Recipient First Name ]]> on off FFA 21 12PM opting-in 123456 greater 1 false
- if you selected ar_type= "last_open" or "last_click", then campaign_id attribute is required. Required Fields: • message_type • html_body • audience_id • ar_name • subject • reply_to • ar_type • cat_id • send_time • condition • condition_days • enable --- 123456 Error Response: Message type must be html, text or text,html Must be true or false Wrong time format, examples: 1AM, 12P M Must be opting-in, last_open or last_click Campaign ID must be filled Unexisting campaign Unexisting category Must be greater, less or equal Unexisting audience Email address is not valid Email address is not valid

addAutoresponder

Request

<?xml version="1.0"?> 
<request> 
  <user mail="test@test.com" API_key="12345ABCDEF67890GHIJK"/>  
  <method>addAutoresponder</method>  
  <parameters> 
    <audience_id> 
      123456 
    </audience_id> 
    <ar_name> 
      Autoresponder Name 
    </ar_name> 
    <from_name> 
      Some Name 
    </from_name>    
    <from_email> 
      test@test.com 
    </from_email>    
    <reply_to> 
      test@test.com 
    </reply_to >     
    <html_body > 
      <![CDATA[ 
        <p>some html </p > <var nametype="user_field_1">Recipient First Name</var> 
      ]]> 
    </html_body> 
    <text_body> 
      <![CDATA[ 
        <p>some text</p> <var nametype="user_field_1">Recipient First Name</var> 
      ]]> 
    </text_body> 
    <message_type> 
       text,html 
    </message_type> 
    <subject> 
      <![CDATA[ 
        some text <var nametype="user_field_1">Recipient First Name</var>  
      ]]> 
    </subject> 
                           
    <delivery_reminder> 
      on 
    </delivery_reminder> 
    <permission_reminder> 
      off 
    </permission_reminder>               
         
    <ff_link> 
       
    </ff_link> 
     
    <ff_link_text> 
      FFA 
    </ff_link_text> 
     
    <cat_id>21</cat_id> 
     
    <send_time> 
      12PM 
    </send_time> 
     
    <ar_type> 
      opting-in 
    </ar_type > 
     
    <campaign_id> 
      123456 
    </campaign_id> 
     
    <condition> 
      greater 
    </condition> 
     
    <condition_days> 
      1 
    </condition_days> 
 
    <enable> 
      false 
    </enable> 
           
  </parameters> 
</request> 
 
- if you selected ar_type= "last_open" or  "last_click", then campaign_id attribute is required. 
 
Required Fields:  
  • message_type 
  • html_body 
  • audience_id 
  • ar_name 
  • subject 
  • reply_to 
  • ar_type 
  • cat_id 
  • send_time 
  • condition 
  • condition_days 
  • enable

Response

<?xml version="1.0" encoding="utf-8"?> 
<emercurymailAPI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
  <ar_id>123456</ar_id>  
</emercurymailAPI> 
 
Error Response:  
 
<?xml version="1.0" encoding="utf-8"?> 
<emercurymailAPI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
  <errors> 
    <error> 
      <message_type>Message type must be html, text or text,html</message_type> 
    </error> 
    <error> 
      <enable>Must be true or false</enable> 
    </error> 
    <error> 
      <send_time>Wrong time format, examples: 1AM, 12P M</send_time>  
    </error> 
    <error> 
      <ar_type>Must be opting-in, last_open or last_click</ar_type>  
    </error> 
    <error> 
      <campaign_id>Campaign ID must be filled</campaign_id>  
    </error> 
    <error> 
      <campaign_id>Unexisting campaign</campaign_id> 
    </error> 
    <error> 
      <cat_id>Unexisting category</cat_id>  
    </error> 
    <error> 
      <condition>Must be greater, less or equal</condition> 
    </error> 
    <error> 
      <audience_id>Unexisting audience</audience_id> 
    </error> 
    <error> 
      <reply_to>Email address is not valid</reply_to> 
    </error> 
    <error> 
      <from _email>Email address is not valid</from_email> 
    </error> 
  </errors> 
</emercurymailAPI>
Emercury. All Rights Reserved © Copyright 2002-2020
Memberships
Partners