Skinnyr.com API – Account Management Methods
verifyAccount
Validates account information against the database.
Parameters
- String Username
- String Password - Lowercase md5 hash of the user’s password
Returns
Sample Request
Sample Return
getAccountPrefs
Retrieves a list of updatable account preferences.
Parameters
- String Username
- String Password - Lowercase md5 hash of the user’s password
Returns
- String strUnits - The unit of measurement this account uses. Will be either: “lb” for Standard (lbs and inches), “kg” for Metric (kg and cm), or “st” for Imperial (stone and inches).
- String strGender - The gender of the user. Will be either: “M”, “F”, or “”.
- Int intHeight - The height of the user. The unit of measurement is specified by the value from strUnits.
- Int intWeightBlurr - Whether or not to use the “Weight Blurr” feature on this account. 1 is true, 0 is false. Weight Blurr hides the users true weight by base-lining it at either the first weight record on the account, or the value specified in intStartWeight.
- Int intStartWeight - The weight of the user at the beginning of their diet. If the user didn’t start their graph when they started dieting/gaining weight, they can specify their starting weight here.
Sample Request
Sample Return
setAccountPrefs
Saves a list of account preferences.
Parameters
- String Username
- String Password - Lowercase md5 hash of the user’s password
- String Units - The unit of measurement this account uses. Should be either: “lb” for Standard (lbs and inches), “kg” for Metric (kg and cm), or “st” for Imperial (stone and inches).
- String Gender - The gender of the user. Should be either: “M”, “F”, or “”.
- Int Height - The height of the user. The unit of measurement is specified by the value from strUnits.
- Int Weight Blurr - Whether or not to use the “Weight Blurr” feature on this account. 1 is true, 0 is false. Weight Blurr hides the users true weight by base-lining it at either the first weight record on the account, or the value specified in intStartWeight.
- Int Start Weight - The weight of the user at the beginning of their diet. If the user didn’t start their graph when they started dieting/gaining weight, they can specify their starting weight here.
Returns
Sample Request
Sample Return
getGraphURL
Retrieves the URL to a png based version of the specified user’s graph.
Parameters
- String Username
- String Password - Lowercase md5 hash of the user’s password
Returns
- String strGraphURL - The fully qualified URL of the specified user’s graph.
Sample Request
Sample Return