1. Home
  2. Docs
  3. UbiBot API 文档
  4. 用户帐户管理(内部使用)
  5. 创建用户账户

创建用户账户

用于创建一个用户

发送一个HTTP POST到

http://api.ubibot.cn/accounts/create

有效请求参数:

 JSON格式数据字段: username, password, email, timezone

例如: {“username”:”abc”,”password”:”123″,”email”:”123@gmail.com”, “timezone”: “Europe/London”, “captcha_code“:””}

验证码图片 URL: http://api.datadudu.cn/accounts/captcha

 

返回值:

 JSON格式数据:{“result”:”success”,”server_time”:”2017-02-24T09:42:08Z”,”account”:{“user_id”:”2B9ED6E3-C7A8-40BC-AB82-002B4D001A60″,”username”:”tztz2″,”email”:”tztz2@126.com”,”account_key”:”226c4c9ce8ff604f1fe6abe4b180de5c”,”created_at”:”2017-02-24T09:42:08Z”,”updated_at”:”2017-02-24T09:42:08Z”,”status”:null,”timezone”:”Asia/Shanghai”,”email_status”:”pending”,”website”:null,”bio”:null,”public_flag”:null,”usage”:”0″,”firstname”:null,”lastname”:null,”mobile”:null,”mobile_status”:null,”last_login_time”:null,”last_login_ip”:null,”balance”:”0″,”openid_wechat”:null,”avatar”:null,”landline”:null,”country”:null,”state”:null,”city”:null,”address”:null}}

account_key 用来操作通道数据

{“result”:”error”,”server_time”:”2017-02-24T05:27:00Z”,”errorCode”:”invalid_json_format”,”desp”:”invalid json input”}

Was this article helpful to you? Yes No

How can we help?