oauth_consumer_key |
String |
Your API key when you registered as a developer |
oauth_signature_method |
String |
The method used to generate the signature (only HMAC-SHA1 is supported) |
oauth_timestamp |
Int |
The date and time, expressed in the number of seconds since January 1, 1970 00:00:00 GMT. The timestamp value must be a positive integer and must be equal or greater than the timestamp used in previous requests |
oauth_nonce |
String |
A randomly generated string for a request that can be combined with the timestamp to produce a unique value |
oauth_version |
String |
MUST be "1.0" |
oauth_signature |
String |
The signature, a consistent reproducible concatenation of the request elements into a single string. The string is used as an input in hashing or signing algorithms. |
method |
String |
MUST be "food.create.v2" |
oauth_token |
String |
The key of the profile to use.
|
brand_type |
String |
The type of brand of the food to create. Valid brand types are "manufacturer", "restaurant" and "supermarket" (default value is "manufacturer")
|
brand_name |
String |
The name of the brand to create. E.G.: "Kraft"
|
food_name |
String |
The name of the food to create. E.G.: "Swiss Cheese Singles"
|
serving_size |
String |
The serving size of the food to create. E.G.: "1 slice"
|
calories |
Decimal |
The energy content in kcal
|
fat |
Decimal |
The total fat content in grams
|
carbohydrate |
Decimal |
The total carbohydrate content in grams
|
protein |
Decimal |
The protein content in grams
|