Using the web API

Included in this project is the LimeLM class that allows easy integration with your website. Also included are the following examples:

Using the LimeLM class

Below is an example that generates a product key. It involves 3 steps:

  1. Setting the API key
  2. Calling the LimeLM.GeneratePkey() function
  3. Parsing the XML response from the server.
//TODO: set your API key found in http://wyday.com/limelm/settings/
LimeLM.APIKey = "PASTE THE API KEY HERE";

//TODO: set the version id to generate & find keys for
// the version id is found in the url. For example http://wyday.com/limelm/version/100/
// the version id is 100.
const string versionID = "PASTE THE VERSION ID";

string ret = LimeLM.GeneratePKeys(versionID, 1, 2, "an.email@example.com", new[] { "update_expires" }, new[] { "2011-06-25 23:19:52" });

//TODO: parse the XML response