Follow us on Twitter. :)

Welcome to skinnyr!

We noticed you're not logged in.

Skinnyr.com API – Account Management Methods

verifyAccount

Validates account information against the database.

Parameters

  1. String Username
  2. String Password - Lowercase md5 hash of the user’s password

Returns

  • Boolean bUserValid

Sample Request

Sample Return

getAccountPrefs

Retrieves a list of updatable account preferences.

Parameters

  1. String Username
  2. 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

  1. String Username
  2. String Password - Lowercase md5 hash of the user’s password
  3. 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).
  4. String Gender - The gender of the user. Should be either: “M”, “F”, or “”.
  5. Int Height - The height of the user. The unit of measurement is specified by the value from strUnits.
  6. 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.
  7. 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

  • Boolean bUpdated

Sample Request

Sample Return

getGraphURL

Retrieves the URL to a png based version of the specified user’s graph.

Parameters

  1. String Username
  2. 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