API Request Account Token

Api Request Account Token

Request a token for a specific account. The application token must be valid - this indicates which piece of software (e.g. LifeCubby) is requesting the token. A valid administrator email for the account requesting the token is required. Either a new token or the existing token for the account will be returned along with an error code and error message.

Get call format:
- application_token : required, 32 character token - only one is assigned to each authorized software package. You must contact a FunShine Online administrator to set up an application token.
- admin_userid : required, FunShine Online login ID. Must be a valid account administrator ID.

Format json
    "api_token": "a1b2c3d4E5F6g7H8a1b2c3d4E5F6g7H8",
    "error_code": 0,
    "error_message": "Successful."

$listurl = "http://www.funshineonline.com/api/requestAccountToken.php?application_token=" . $token . "&admin_userid=" . $admin_userid;
$jsonData = file_get_contents($listurl);
$theData = json_decode($jsonData, true);