This document describes the reqired format of Linkbee API URLs and lists of available parameters. The Linkbee API returns a JSON-formatted string in response to a URL. Several functionalities can be generated, including quick link, cash link, and statistic. Authentication might be needed for certain functions.
Linkbee API URLs must be in the following format:
http://linkbee.com/api.php?task=<name of function>&<parameter_1=value>&<parameter_2=value>
Parameters are seperated using the ampersand (&) character. You can specify parameters in any order. For example, the folling JSON-formatted string was returned in response to the URL below:
{"error":0,"msg":"","hits":"4"}
http://linkbee.com/api.php?task=hits&user=john&pass=_Mì·ZkeÖ]§Ï
Where:
http://linkbee.com/api.php? is the API locationtask=hits is the requested function& seperates parametersuser=john&pass=_Mì·ZkeÖ]§Ï is the username and password for authenticationJSON String Format
The JSON-fomartted string will be returned in the following format:
{"error":"value","msg":"value","requested function":"value"}
Where:
"error":"value" is the error code. 1 if an error occured and 0 otherwise."msg":"value" is the error message. None for a successful operation."requested function":"value" is the result of interest. Available requested functions are: quicken, shorten, hits.Functions and Required Parameters
Example: http://linkbee.com/api.php?task=quicken&url=http://www.jokedollars.com
Required:
Example: http://linkbee.com/api.php?task=shorten&user=john&pass=_Mì·ZkeÖ]§Ï&ad=0&cat=9
Required:
Optional:
If unspecified, default options will be assigned as None for Ad type and Unrelated for Catergory.
Example: http://linkbee.com/api.php?task=hits&user=john&pass=_Mì·ZkeÖ]§Ï
Required: