Follow us on Twitter. :)

Welcome to skinnyr!

We noticed you're not logged in.

Skinnyr.com API v2.0 – Account Management Methods

getAccount

Retrieves the specifics of an account.

Parameters

  1. String AuthToken

Returns

  • String strUsername
  • String strEmail

Sample Request

Sample Return

updateEmail

Updates the email address on an account.

Parameters

  1. String AuthToken
  2. String New Email Address

Returns

  • Boolean bUpdated

Sample Request

Sample Return

getPrefs

Retrieves a list of updatable account preferences.

Parameters

  1. 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

  1. String AuthToken
  2. 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).
  3. String Gender - The gender of the user. Should be either: “M”, “F”, or “”.
  4. Double Height - The height of the user. The unit of measurement is always (cm). View conversion formulas.
  5. 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.
  6. 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

  • Boolean bUpdated

Sample Request

Sample Return