Subscriber Management API

You are here:
Estimated reading time: 1 min

Subscribers

https://api.constantcampaigns.com/ver1/subscribeAPI – Subscribe to list

Description: Add and subscriber email to subscribers list

Method: POST

Params:

EMAIL – subscriber email,

listUID – list Uid ,

FNAME = subscriber first name,

LNAME = subscriber last name,

api_key – App API public key,

req_type – subscribe

Return: Status (success/error)

Note:

Send custom fields tags in params

Put date related fields in yyyy-mm-dd

Date-time related fields in yyyy-mm—dd HH:mm:ss (time in 24 hour format)

Sample to use(Curl):

curl –request POST ‘https://api.constantcampaigns.com/ver1/subscribeAPI’ –data ‘api_key=fcbcf8e3d8f55b84b7faff33ee41e42sd6515a2c&req_type=unsubscribe&listUID&EMAIL=xyzrem@demo.com’

 


Unsubscribe

http://api.constantcampaigns.com/ver1/subscribeAPI – Unsubscribe from list

Description: Add and subscriber email to subscribers list

Method: POST

Params:

EMAIL – subscriber email,

listUID – list Uid ,

api_key – App API public key,

req_type – unsubscribe

Return: Status (success/error)

Note:

Send custom fields tags in params

Put date related fields in yyyy-mm-dd

Date-time related fields in yyyy-mm—dd HH:mm:ss (time in 24 hour format)

Sample to use(Curl):

curl –request POST ‘https://api.constantcampaigns.com/ver1/subscribeAPI’ –data ‘api_key=fcbcf8e3d8f55b84b7faff33ee41e4c2sd6515a2c&req_type= unsubscribe &EMAIL=xyzrem@demo.com’

 


Lists

http://api.constantcampaigns.com/ver1/listAPI — Get all list

Description: Get all list name, description

Method: GET

Params:

api_key – App API public key,

req_type – allLists

Return: Jason (Status (success/error),count , listsdata array [{list_uid, name, description}, {list_uid, name, description}]

Sample to use(Curl):

curl ‘http://api.constantcampaigns.com/ver1/listAPI’ –data ‘api_key=fcbcf8e3d8f55b84b7faff33ef4e1esd2c46515a2c&&req_type=allLists’

listAPI — Get all fields (tags)

Description: Get all list name, description

Method: GET

Params:

list_uid – list Uid ,

api_key – App API public key,

req_type – listFields

Return: Jason (Status (success/error),count , records array [{tag,label,required,type}, {tag,label,required,type }]

Sample to use(Curl):

curl ‘http://api.constantcampaigns.com/ver1/listAPI’ –data ‘api_key=fcbcf8e3d8f55b84b7faff33e4e1esd2c46515a2c&req_type=allLists’

 

 

Was this article helpful?
Dislike 0
Views: 19

0 Comments

Leave a Reply