Skinnyr.com API v2.0 – Account Management Methods
getAccount
Retrieves the specifics of an account.
Parameters
- String AuthToken
Returns
- String strUsername
- String strEmail
Sample Request
Sample Return
updateEmail
Updates the email address on an account.
Parameters
- String AuthToken
- String New Email Address
Returns
Sample Request
Sample Return
getPrefs
Retrieves a list of updatable account preferences.
Parameters
- String AuthToken
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 “”.
- Double dblHeight - The height of the user. The unit of measurement is always centimeters (cm). View conversion formulas
- 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.
- Double dblStartWeight - 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. This value will always be in kilograms (kg). View conversion formulas
Sample Request
Sample Return
updatePrefs
Saves a list of account preferences.
Parameters
- String AuthToken
- 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 “”.
- Double Height - The height of the user. The unit of measurement is always (cm). View conversion formulas.
- 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.
- Double 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. This value will need to be kilograms (kg). View conversion formulas
Returns
Sample Request
Sample Return