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.

ImportSubscribers

This function is used to import contacts into audience from file uploa ded to ftp, from file located on your server or from the x ml itself.

Required fields are:
– ID o f audience to import.
– path to file with subscribers. You can set any path available by url or full path on your server or path to the file on ftp if you requested for ftp account.
- email of customer that will be added.
- if it is set to 1, then system will look for the file on Emercury server (file should be uploaded and you should have correct value ). If it is set to 0, then system will look for the file by link that is set in or on your server.

You can also add subscribers to the xml file directly:
- leave attribute empty;
- add another tag that will hold emails in thi s format:

mail@mail.com,"01/01/1970","10.10.10.10","http://site.com","First name","La st name"
mail2@mail.com,"01/01/1970","10.10.10.10","http://site.com","First name","Last name"

fields separators should be commas and each email from new line
- keep values in tag in a same order that you are going to use for fields in the list.

ImportSubscribers

Request

<p>This function is used to import contacts into audience from file uploa ded to ftp, from  file located on your server or from the x ml itself.</p>

<p>Required fields are:<br />
<audience_id> –  ID o f audience to import.<br />
<path>  –  path to file with subscribers. You can set any path available by url or full path on  your server or
path to the file on ftp if you requested for ftp  account.<br />
<fields> → <email> -  email of customer that will be added.<br />
<is_ftp > - if it is set to 1, then system will look for the file on Emercury server (file should be uploaded and
you should have correct <path> value ). If it is set to 0, then system will look for the file by  link that is set in
<path> or  on your  server.</p>
 
<p>You can also add subscribers to the xml file directly:  <br />
 - leave <path> attribute empty;<br />
 - add another tag <subscribers>that will hold emails in thi s format:<br />
<subscriber s><br />
mail@mail.com,"01/01/1970","10.10.10.10","http://site.com","First name","La st name" <br /> 
mail2@mail.com,"01/01/1970","10.10.10.10","http://site.com","First name","Last  name" <br /> 
</sub scribers><br />
fields separators should be commas and each email from new line  <br />
 - keep values in <fields> tag in a same order that you are going  to use for  fields in the <subscribers> list. </p>

Response

					
Emercury. All Rights Reserved © Copyright 2002-2020
Memberships
Partners