用于账号登录
发送一个HTTP GET/POST到
http://api.ubibot.cn/accounts/login
有效请求参数:
|
返回值:
JSON格式数据:{“result”:”success”,”server_time”:”2017-02-23T07:44:37Z”,”token_id”:”8ffa2c701974877282645fc68c1a1a7d”,”expire_time”:1487836777,”account”:{“user_id”:”A874A453-87B0-482D-B7C5-EC45FC1B53D0″,”username”:”wangmao”,”email”:”wangmao@cloudforce.cn”,”account_key”:”f80bf3c4f9b3481b8cc1dd8f3ed716e7″,”created_at”:”2016-04-01T17:47:36Z”,”updated_at”:”2016-08-29T14:27:10Z”,”status”:null,”timezone”:”Asia/Shanghai”,”email_status”:”live”,”website”:”datadudu.cn”,”bio”:”dataduduaaa”,”public_flag”:”true”,”usage”:”487487677″,”firstname”:null,”lastname”:”aaaaa”,”mobile”:null,”mobile_status”:null,”last_login_time”:”2017-02-23T07:25:22Z”,”last_login_ip”:”113.227.32.53″,”balance”:”9840″,”openid_wechat”:”od7rtvpy7Mp1KW-Yg0QDBeZG7DX4″,”avatar”:”//static.ubibot.cn/users/A874A453-87B0-482D-B8C5-EC45FC1B53D0/ba0e99a5c2d09ce14af95da38fcf4aa8.jpg”,”landline”:null,”country”:”\u4e2d\u56fd”,”state”:”\u5929\u6d25″,”city”:”\u897f\u9752″,”address”:”222″,”num_shared_to_me”:28,”num_shared_to_others”:13,”num_devices”:41,”num_channels”:37,”avatar_base”:”users/A874A453-87B0-482D-B8C5-EC45FC1B53D0/ba0e99a5c2d09ce14af95da38fcf4aa8.jpg”}}
{“result”:”error”,”server_time”:”2017-02-23T09:31:20Z”,”errorCode”:”missing_data”,”desp”:”Missing: username or password”} token_id 用于网站内部的账号操作,error的返回值为400 |