Opt-In Form API

This API allows you to use any application to create opt-in forms and submit the information to the appropriate opt-in list without having to log in to the advertiser's dashboard and create an opt-in page there. 

 

Url: https://mcpn.us/limeApi?ev=optin

Parameters 

Parameter Name (Case

Sensitive)

 

Value

Description

Remarks

user  (mandatory)

Advertiser username

The advertiser’s username that matches the api_id

 

api_id (mandatory)

Advertiser Api Id

The advertiser’s api_id that matches the username

Can be generated from edit profile

keyword (mandatory)

Keyword as shown on the contact list wizard (Together with short code i.e. "pizza (71441-US)" or "pizza (07860024024)")

The keyword that connected to the opt-in list

 

mobile (mandatory)

Mobile Number

Mobile Number to send

 

first (optional)

First name

The mobile number’s owner first name

 

last (optional)

Last name

The mobile number’s owner last name

 

gender (optional)

M or F

The mobile number’s owner gender

 

email (optional)

Email address

The mobile number’s owner email

 

birthDay (optional)

Birth Day 1-31

The mobile number’s owner birth day

 

birthMonth (optional)

Birth Month 1-12

The mobile number’s owner birth month

 

birthYear (optional)

Birth Year

The mobile number’s owner birth year

 

zipcode (optional)

Zip Code

The mobile number’s owner zip code

 

familyStatus (optional)

1/2

1 - Single

2 - Married

The mobile number’s owner family status

 

numOfKids (optional)

0-10

The mobile number’s owner number of kids

 

education (optional)

1-5

1- Initial school

2 - Intermediate school

3 - College

4 - High school

5 - University

The mobile number’s owner education

 

annualIncome (optional)

A number

The mobile number’s owner annual income

 

numOfCars (optional)

0-5

The mobile number’s owner number of cars

 

ownHouse (optional)

true/false

Indicate if  mobile number’s owner is own a house

 

phoneMake (optional)

String

The mobile number’s owner phone make

 

phoneModel (optional)

String

The mobile number’s owner phone model

 

userdefine1

String

Value of the first custom field

Will be added to the user only if custom fields have been configured

userdefine2

String

Value of the second custom field

Will be added to the user only if custom fields have been configured

userdefine3

String

Value of the third custom field

Will be added to the user only if custom fields have been configured

userdefine4

String

Value of the fourth custom field

Will be added to the user only if custom fields have been configured

userdefine5

String

Value of the fifth custom field

Will be added to the user only if custom fields have been configured

format

xml

Optional for sending the parameters as xml file. If present then only values from XML will be used.

 

isJson

true/false

Set to true if need response in JSON format

Default is false

 

Return Code

If the API succeeds then it will return with status code 200.

 If an error occurs or there is an invalid parameter then it returns with status code 400 or 500 with an error message in the response.

If an optional parameter is invalid than the system ignores this parameter and the API continue as it was not supplied.

 

Example:

https://mcpn.us/limeApi?ev=optin&user=advertiser@gmpizza.com&api_id=q5JA73WRLy13822c&keyword=pizza&mobile=15555555555

 

Example for XML:

https://mcpn.us/limeApi?ev=optin&format=xml

 

XML File:

<?xml version="1.0" ?>

<Data>

            <User>user</User>

            <ApiId>api key</ApiId>

            <Keyword>keyword</Keyword>

            <ListId>listId</ListId>

            <Mobile>Mobile</Mobile>

            <FirstName>FirstName</FirstName>

            <LastName>LastName</LastName>

            <Gender>Gender</Gender>

            <Email>Email</Email>

            <BirthDay>BirthDay</BirthDay>

            <BirthMonth>BirthMonth</BirthMonth>

            <BirthYear>BirthYear</BirthYear>

            <ZipCode>ZipCode</ZipCode>

            <FamilyStatus>FamilyStatus</FamilyStatus>

            <NumOfKids>NumOfKids</NumOfKids>

            <Education>Education</Education>

            <AnnualIncome>AnnualIncome</AnnualIncome>

            <NumOfCars>NumOfCars</NumOfCars>

            <OwnHouse>No</OwnHouse>

            <PhoneMake>PhoneMake</PhoneMake>

            <PhoneModel>PhoneModel</PhoneModel>

            <UserDefine1>UserDefine1</UserDefine1>

            <UserDefine2>UserDefine2</UserDefine2>

            <UserDefine3>UserDefine3</UserDefine3>

            <UserDefine4>UserDefine4</UserDefine4>

            <UserDefine5>UserDefine5</UserDefine5>

            <IsJson>true</IsJson>

</Data>

 

0 Comments

Article is closed for comments.
Powered by Zendesk