fatsecret Platform API Documentation
Profile - Authentication: Get Profile Status
Description
Returns general status information for a nominated user.
Parameters
URL / Method
Response
Each profile element contains information as follows:
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| weight_measure | String | Either "kg" or "lb" - whether weight should be displayed in kilograms or pounds |
| height_measure | String | Either "cm" or "inch" - whether height should be displayed in centimeters or inches |
| last_weight_kg | Decimal | Last recorded weight in kilograms |
| last_weight_date_int | Int | Date that the user's weight was last recorded expressed as the number of days elapsed since January 1, 1970 |
| last_weight_comment | String | Comment recorded by the user on the last weight entry (where available) |
| goal_weight_kg | Decimal | User's goal weight in kilograms |
| height_cm | Decimal | User's current height in centimeters |
Example Response
Example 1:
<?xml version="1.0" encoding="utf-8"?>
<profile xmlns="http://platform.fatsecret.com/api/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://platform.fatsecret.com/api/1.0/ http://platform.fatsecret.com/api/1.0/fatsecret.xsd">
<weight_measure>Kg</weight_measure>
<height_measure>Cm</height_measure>
<last_weight_kg>80.0000</last_weight_kg>
<last_weight_date_int>14289</last_weight_date_int>
<last_weight_comment>Woohoo!</last_weight_comment>
<goal_weight_kg>78.0000</goal_weight_kg>
<height_cm>187.96</height_cm>
</profile>
Example 1:
{
"profile": {
"goal_weight_kg": "78.0000",
"height_cm": "187.96",
"height_measure": "Cm",
"last_weight_comment": "Woohoo!",
"last_weight_date_int": "14289",
"last_weight_kg": "80.0000",
"weight_measure": "Kg"
}
}
Error Codes
| CODE | TYPE | DESCRIPTION |
|---|---|---|
| 2 | OAuth 1.0 | Missing required oauth parameter: '<details>' |
| 3 | OAuth 1.0 | Unsupported oauth parameter: '<details>' |
| 4 | OAuth 1.0 | Invalid signature method: '<details>' |
| 5 | OAuth 1.0 | Invalid consumer key: '<details>' |
| 6 | OAuth 1.0 | Invalid/expired timestamp: '<details>' |
| 7 | OAuth 1.0 | Invalid/used nonce: '<details>' |
| 8 | OAuth 1.0 | Invalid signature: '<details>' |
| 9 | OAuth 1.0 | Invalid access token: '<details>' |