Get A User

Endpoint allows getting a User by its IDon the Graph or by externalUserId. This API available only for user access-token integration.

Get User

GET https://graph.whisk.com/v1/me

Path Parameters

{
  "id": "3d4fda8595114a3a9f7b12fd471a4169",
  "externalId": "1654732567",
  "email": "[email protected]",
  "firstName": "John",
  "lastName": "Doe",
  "displayName": "John Doe",
  "pictureUrl": "http://john.doe.picture.url.jpg",
  "updatedAt": 1524150524000,
  "createAt": 1524150524000,
  "preferences": {
    "diets": [
      "vegetarian",
      "vegan"
    ],
    "avoidances": [
      "egg",
      "celery"
    ],
    "dislikedIngredients": [
      {
        "name": "milk"
      }
    ],
    "householdSizeAdults": 2,
    "householdSizeChildren": 1,
    "gender": "male",
    "cookingSkill": "amateur",
    "language": "ko",
    "country": "kr"
  }
}

Sample Request

curl "https://graph.whisk.com/v1/10002493" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer <Access-Token>"

or

curl "https://graph.whisk.com/v1/users/?externalUserId=433201117" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer <Access-Token>"

Response

UserPreferences

Last updated