The API consists of two end points. Using these two end points, you can create a subscription by email address, set their social share id, control if they get the autoresponder email, and return info about previous subscriptions.
To add an email to your customer list, you need to make an HttpPost to the following end point:
https://api.kickofflabs.com/v1/{YOUR CAMPAIGN ID}/subscribe
The only required parameter is email address.
Supplying these values will help us better categorize your leads and prevent fraudelent/spam leads from adversely affecting your campaign.
This is useful to simply pull information about an existing subscriber.
To retrieve subscriber information from your customer list, you need to make Get request to the following end point:
https://api.kickofflabs.com/v1/{YOUR LIST ID}/info
You must include only 1 of the following parameters
You can also optionally include an api_key parameter (found in your KickoffLabs dashboard). When this is present, the response will include a users custom fields.
NOTE: While recommend using an HttpPost, since we also support JSONP, you can also add subscriptions via HttpGet
The response body is JSON and will contain parameters:
You can also include a query string parameter jsonp. When this is present (HttpGet only) we will wrap the JSON response with the name of the callback. This is generally used to integrate our API directly into a web page wit JavaScript.
Keep on reading to find examples from Ruby to VB.NET. :) We also have a complete demo you can download.