← All methods

users.register

users.register Параметры: name, lastname, email, password, captcha_sid, captcha_key опц.: gender, day, month, year, country, city, fingerprint Логика портирована из ldr/regme.php. Отличия от веба: - капча из API-flow (memcache apicap_<sid>), не из $_SESSION; - referral cookie не используется (api-клиент его обычно не пробрасывает); - HTML/JS-ответы заменены на JSON ($arr). Создаёт юзера c user_verified=0, шлёт email с токеном подтверждения. access_token НЕ выдаётся — клиент должен подтвердить email через users.confirmEmail или (если открыта ссылка из письма) пуллить users.checkEmailConfirmed.

Parameters

Parameter Type Required Description
website mixed no
name mixed no
lastname mixed no
email mixed no
password mixed no
captcha_sid mixed no
captcha_key mixed no
fp mixed no
gender mixed no
day mixed no
month mixed no
year mixed no
country mixed no
city mixed no

Example

curl -s -X POST 'https://durovloh.net/api.php' \
  -d 'method=users.register' \
  -d 'access_token=USER_TOKEN'