Skinnyr.com API – Account Management Methods
getWeightRecords
Retrieves a list of all weight record entries belonging to the specified user.
Parameters
- String Username
- String Password - Lowercase md5 hash of the user’s password
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
addWeightRecord
Adds a weight record to the specified user’s account. The date and time is recorded according to current time (CST).
Parameters
- String Username
- String Password - Lowercase md5 hash of the user’s password
- Double Weight
- dateTime.iso8601 Date/time of the weight record
Returns
Sample Request
Sample Return
addWeightRecordKg
Adds a weight record to the specified user’s account. Takes input as KG only and converts to the user’s preferred weight unit. The date and time is recorded according to current time (CST).
Parameters
- String Username
- String Password - Lowercase md5 hash of the user’s password
- Double Weight (in KG)
- dateTime.iso8601 Date/time of the weight record
Returns
Sample Request
Sample Return
deleteWeightRecord
Removes the specified weight record from the specified user’s account.
Parameters
- String Username
- String Password - Lowercase md5 hash of the user’s password
- Int Weight Record ID - The record_id of the weight record to be deleted, as specified by getWeightRecords
Returns
Sample Request
Sample Return