Developers

Building APIs Inside Lisflex

The following integration examples are below:
Getresponse
Adopia
Maropost
Constant Contact
Reachmail
Sendlane
Interspire
Email Leads Individually
Active Campaign
Mailwizz
Aweber
Emurcury
Market Hero
Drip.com


Getresponse Example.

API Description
Give your api a good name
API Type
Regular API
API Endpoint
http://api.listflex.com/getresponsewrapper.php
Post Variables *
apikey=<your_api_key>&campaign=<your_campaign>&email=%%email%%&fname=%%fname%%&lname=&country=%%country%%&ip=%%ip%%&optin_date=%%date_subscribed%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
queued:1

* Please refer to your GetResponse account for these variables: <your_api_key> <your_campaign>

 


Adopia Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint
http://www.adopia.com/services/addListContact
Post Variables *
api_key=<api_key>&list_id=<list_id>&response_type=xml&contact[contact_email]=%%email%%&contact[contact_name]=%%fname%%&is_double_opt_in=0
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
GET
Successful Response
success

* Please refer to your Adopia account for these variable: <api_key> <list_id>

 


Maropost Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
http://api.maropost.com/accounts/<account_id>/lists/<list_id>/contacts.json
Post Variables *
{
 "auth_token": "<auth_token>",
 "email": "%%email%%",
 "first_name": "%%fname%%",
 "last_name": "%%lname%%",
 "subscribed_at": "%%date_subscribed%%",
 "contact.ip": "%%ip%%"
}
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
Subscribed
Headers (advanced options)
Content-Type:application/json

* Please refer to your Maropost account for this variable: <account_id> <list_id> <auth_token>

 


Constant Contact Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
http://<api.yoururl.com>/constantcontact/addcontact.php
Post Variables *
api_key=<api_key>&token=<token>&list_id=<list_id>&fname=%%fname%%&lname=%%lname%%&email=%%email%%&ip=%%ip%%&date_subscribed=%%date_subscribed%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
GET
Successful Response
success

* Please refer to your Constant Contact account for these variables: <api.yoururl.com> <api_key> <token> <list_id>

 


Reachmail Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint
http://api.listflex.com/reachmailwrapper.php
Post Variables *
acc_id=<AccountID>&username=<USERNAME>&password=<PASSWORD>&listid=<LISTID>&accountid=<AccountID>&email=%%email%%&fname=%%fname%%&lname=%%lname%%&phone=%%phone%%&address=%%address%%&city=%%city%%&state=%%state%%&zip=%%zip%%&optin_date=%%date_subscribed%%&ip=%%ip%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
success

* Please refer to your Reachmail account for these variables: <AccountID> <USERNAME> <PASSWORD> <LISTID>

 


Sendlane Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint
https://cndt2.sendlane.com/api/v1/list-subscriber-add
Post Variables *
api=<api_key>&hash=<hash>&list_id=<list_id>&email=%%email%%&first_name=%%fname%%&last_name=%%lname%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
success

* Please refer to your Reachmail account for these variables: <api_key> <hash> <list_id>

API Documentation: https://help.sendlane.com/hc/en-us/articles/360025840791-API-Docs

 


Interspire Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
<your_interspire_url>
Post Variables *
<xmlrequest>
 <username><username></username>
 <usertoken><usertoken></usertoken>
 <requesttype>subscribers</requesttype>
 <requestmethod>AddSubscriberToList</requestmethod>
 <details>
 <emailaddress>%%email%%</emailaddress>
 <mailinglist>4</mailinglist>
 <format>html</format>
 <confirmed>yes</confirmed>
 <customfields>

<item>
 <fieldid>2</fieldid>
 <value>%%fname%%</value>
 </item>
<item>
 <fieldid>4</fieldid>
 <value>%%phone%%</value>
</item>

</customfields>
 </details>
</xmlrequest>
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
success

* <your_interspire_url>, <username> and <usertoken> can be obtained from your Interspire setup.

 


Email Leads Individually

API Description
Give your api a good name
API Type
Regular API
API Endpoint
http://lftools1.listflex.com/api/emaillead2client.php
Post Variables *
to=<to_emails>&from_email=<from_email>&from_name=Listflex&subject=You have a new Lead&leadinfo_FirstName=%%fname%%&leadinfo_LastName=%%lname%%&leadinfo_Email=%%email%%&leadinfo_Phone=%%phone%%&leadinfo_Address=%%address%%&leadinfo_City=%%city%%&leadinfo_State=%%state%%&leadinfo_Zip=%%zip%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
success

* <to_emails> are the email addresses (separated by comma) that you want to send the lead information to. <from_email> is the email address you want the lead info to appear to have come from.

 


Active Campaign Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
https://<active_campaign_domain>.api-us1.com/admin/api.php
Post Variables *
api_action=contact_add&api_key=<api_key>&
email=%%email%%&p=<list_id>&first_name=%%fname%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
result_code>1<

* Please refer to your Active Campaign account for these variables: <active_campaign_domain> <api_key> <list_id>. You may also have to whitelist the Listflex IP in your system (ask your sales rep for this). See this screenshot for directions to whitelist.

API Documentation: https://www.activecampaign.com/api/example.php?call=contact_add

 


Mailwizz Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
http://<your_domain>/<path>/index.php/lists/<list_id>/subscribe
Post Variables *
EMAIL=%%email%%&FNAME=%%fname%%&LNAME=%%lname%%&CURRENT_DOMAIN_URL=%%offer_url%%&DATE=%%date_subscribed%%&SUBSCRIBER_IP=%%ip%%&COMPANY_CITY=%%city%%&COMPANY_ZONE=%%state%%&COMPANY_ZIP=%%zip%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
Congratulations

* <your_domain> is where you have installed the MailWizz software. <path> is the folder your mailwizz lives in. E.g. email or mailer. <list_id> is the list id you are posting leads into.

 


Integrating with Aweber

** Important – Please ensure your Aweber account is provisioned for API use. Please contact Aweber if you are unsure. **

1. Pull Up this page in your browser: http://api.listflex.com/wrappers/aweber.php?auth=true
Log in using the login and password of the AWeber account you want to post leads into. It will authorize the Listflex app.

2. Once logged in, you will see something like this:
$accessKey = ‘AgrgmlZFxgB2TjzW9j31234’;
$accessSecret = ‘0np5aYjZF1V7SKQXZsUWDs9cUoTERumqOMmfdGdd’;

Keep these values handy for the next step.

3. Pull up this URL (preferably in a different tab): http://api.listflex.com/wrappers/aweber.php?accessKey={accessKey}&accessSecret={accessSecret}
Where {accessKey} and {accessSecret} are values from step 2. You will see a list of Lists in your AWeber account. Example: Available Lists:
$list_id = ‘4508389’; // list name:list name 1
$list_id = ‘4663892’; // list name:list name 2
$list_id = ‘4898573’; // list name:list name 3

Copy the list id that you want the leads to go into. E.g. 4508389

4. Construct an API in your LiftFlex account like so:
Endpoint: http://api.listflex.com/wrappers/aweber.php
Post Variables: accessKey={accessKey}&accessSecret={accessSecret}&list_id={listid}&name=%%fname%%&email=%%email%%&ip=%%ip%%
Successful Response: successfully
Leave the rest of the parameters to their default values.

{accessKey}, {accessSecret} and {listid} are corresponding values from steps 2 and 3.

 


Integrating with Emercury

Emercury has an excellent tutorial on how to intergrate with Listflex here.

 


Market Hero Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint
http://api.markethero.io/v1/api/tag-lead
Post Variables *
{"apiKey":"<api_key>", "firstName":"%%fname%%", "lastName":"%%lname%%", "email":"%%email%%", "tags":["<tags>"]}
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
ok

* Please refer to your Market Hero account for these variables: <api_key> <tags>.

API Documentation: https://markethero2.docs.apiary.io/#reference/0/leads/tag-lead

 


Drip Example

 

API Description
Give your api a good name
API Type
Regular API
API Endpoint
https://api.getdrip.com/v2/<account_id>/campaigns/<campaign_id>/subscribers
Post Variables *
{"subscribers":[{"email":"%%email%%","custom_fields":{"name":"%%fname%% %%lname%%"}}]}
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
subscribers.account
Headers (advanced options)
Content-Type:application/json,authorization: Basic <AUTH_TOKEN>

* Please refer to your Drip account for these variables: <account_id> <campaign_id>. Contact your support rep for <AUTH_TOKEN>

API Documentation: https://developer.drip.com/#create-or-update-a-subscriber

Written By

Leave a Reply

Your email address will not be published. Required fields are marked *