Обновление информации в профиле пользователя.

URL ресурса

https://Your project.userecho.com/api/v2/users/[user_id].json

Параметры

Параметр Значение Обязательный? По умолчанию Опции Описание
email String no User's email.
name String no User's display name.
language String no en, en-gb, ru, es, fr, de, nl, is, et, kk, pt-br, uk, cs, da, fi, hu, it, ja, ko, sv, tr, zh-hans, ca, pl, lv, lt, nb, el, he, ar User's default language. Options are limited by your project selected languages.
verified_email Boolean no true, false Status of user's email (verified or not).
custom_fields no Example: "custom_fields":{"cf_1":"test", "cf_2":5} Save custom fields value

Пример запроса #1

{
  "email":"test@test.com", 
  "name":"Test user"
}

Пример ответа

{
    "status": "success", 
    "data": {
        "rating": 0.0, 
        "is_created": true, 
        "name": "Test user", 
        "name_and_title": "Test user", 
        "title": "", 
        "is_authenticated": true, 
        "avatar_url": "https://secure.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?default=https%3A%2F%2Fcdn.userecho.com%2Fcharacters%2F84.png%3F1&s=48", 
        "slug": "test-user", 
        "language": "en", 
        "is_staff": false, 
        "last_activity": "2016-01-06T19:53:55.688Z", 
        "email": "test@test.com", 
        "id": 3, 
        "date_joined": "2016-01-06T19:53:55.664Z"
    }
}

© 2020 UserEcho, LLC. All rights reserved.