POST api/User/Register

注册账号

Request Information

URI Parameters

None.

Body Parameters

RegisterParam
NameDescriptionTypeAdditional information
mobile

电话号码

string

None.

code

验证码

integer

None.

invitationCode

邀请码

string

None.

source

来源 0 安卓app 1 ios app

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "mobile": "sample string 1",
  "code": 2,
  "invitationCode": "sample string 3",
  "source": 4
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

注册账号

RegisterModel
NameDescriptionTypeAdditional information
token

用户凭证,后续接口如需要 用户信息需要在 头信息加上 token字段 值为该参数的值

string

None.

invitationcode

自己的邀请编码

string

None.

code

0:正确 100:错误 403:需要重新登录

integer

None.

msg

string

None.

submsg

输出的错误信息

string

None.

isinvitation

登陆时候是否需要弹窗填些邀请码 1:需要

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "invitationcode": "sample string 2",
  "code": 3,
  "msg": "sample string 4",
  "submsg": "sample string 5",
  "isinvitation": 6
}