API List Users

Api List Users

Get a list of all FunShine users associated with the account. The api token must be valid. An array of users will be returned along with a count of the number of users and an error code and error message.

Get call format:
http://www.funshineonline.com/api/listUsers.php?api_token=:token
- api_token : required, 32 character token (click here to see instructions on setting up a token)

Object:
Format json
{
    "users": [
        {
            "email": "lingalls@e18s.com",
            "first_name": "Laura",
            "last_name": "Ingalls",
            "role": "Account Admin",
            "active": "Yes"
        }
    ],
    "count": 1,
    "error_code": 0,
    "error_message": "Successful."
}

Example:
PHP:
$listurl = "http://www.funshineonline.com/api/listUsers.php?api_token=" . $token;
$jsonData = file_get_contents($listurl);
$theData = json_decode($jsonData, true);
print_r($theData);

Back