Follow us on Twitter. :)

Welcome to skinnyr!

We noticed you're not logged in.

Skinnyr.com API – Account Management Methods

getAllWeights

Retrieves a list of all weight record entries belonging to the specified user.

Parameters

  1. String AuthToken

Returns

  • Array A nameless array with the following structure:
    • Int record_id - The ID of the current record.
    • dateTime.iso8601 record_datetime - The date and time that the record was added. If a time is not applicable, the time will show as 12am.
    • Double record_weight - The weight value for the current record.

Sample Request

Sample Return

getWeight

Selects a particular weight record.

Parameters

  1. String AuthToken
  2. String Weight Sync Id - The sync id belonging to the weight record you wish to return.

Returns

  • Boolean bUpdated

Sample Request

Sample Return

createWeight

Adds a weight record to the specified user’s account. The date and time is recorded according to current time.

Parameters

  1. String AuthToken
  2. Double Weight - Weights are accepted in kg only. View conversion formulas
  3. dateTime.iso8601 Date/time of the weight record
  4. String Weight Sync Id - The weight sync id generated by your application. (A SHA1 unique to the user and timestamp.) If empty, server will generate a Weight Sync Id for you.

Returns

  • Boolean bAdded
  • String strSyncId - Only returned when successful, the sync id stored by the server. MAY BE DIFFERENT than an id you've passed in, so be sure to update your own value with the value returned here.

Sample Request

Sample Return

updateWeight

Updates a weight record on the specified user’s account.

Parameters

  1. String AuthToken
  2. String Weight Sync Id - The sync id belonging to the weight record you wish to update.
  3. Double Weight - All weights are accepted in kg only. View conversion formulas
  4. dateTime.iso8601 Date/time of the weight record

Returns

  • Boolean bUpdated

Sample Request

Sample Return

deleteWeight

Removes the specified weight record from the specified user’s account.

Parameters

  1. String AuthToken
  2. String Weight Sync Id - The sync id belonging to the weight record you wish to delete.

Returns

  • Boolean bDeleted

Sample Request

Sample Return