The LassoMailer API enables signup via XHR requests to public LassoMailer lists. A successful signup triggers a double opt-in confirmation email, configured in the Opt-In section of the LassoMailer Settings area.
Two methods are provided, "list" and "add".
All requests to the LassoMailer API require a valid API key, which are generated in the Settings > API Keys section.
The List method returns publicly available lists that a member can subscribe to.
URL:
Parameters:
Example request: http://{your.domain.com}/lasso9/LassoMailer/api/v1/lists.xhr?key=56KJHDF987HJKGHJGK
Example Response:
{
"availableColumns":[
"firstname",
"lastname",
"email",
"company",
"country",
"phone"
],
"data":[
[
"28735E6AA7F376FDF3",
"Announcements"
],
[
"28735E6AA4F376FD61",
"Newsletters"
]
],
"error":"No Error."
}
The Add method subscribes a member to one or more lists and triggers the double opt-in email for confirmation.
URL:
Parameters:
One of either the following methods of supplying the list(s) must be used:
Example request:
http://{your.domain.com}/lasso9/LassoMailer/api/v1/add.xhr?key=56KJHDF987HJKGHJGK
{
"email" : "someone@example.com",
"listid" : "28735E6AA7F376FDF3"
}
Example Response:
{
"error":"No Error.",
"msg":"Awaiting Opt-In."
}
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft