POST GDTV/v3/HXYTV/GetVisitorToken

获取游客身份

Request

URI Params

None.

Body Params

游客提交的信息

VisitorInfo
字段名字段说明字段类型附加信息
mac

Mac

string

None.

tvType

TvType

TVType

None.

appID

AppID

integer

None.

areaID

AreaID

integer

None.

timeStamp

TimeStamp

integer

None.

signature

Signature

string

None.

phase

学段

integer

None.

grade

年级

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "mac": "sample string 1",
  "tvType": 1,
  "appID": 2,
  "areaID": 3,
  "timeStamp": 4,
  "signature": "sample string 5",
  "phase": 6,
  "grade": 7
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'VisitorInfo'.

Response

APITResultOfTokenTVModel
字段名字段说明字段类型附加信息
Data

TokenTVModel

None.

Ret

返回结果(0-成功;>0-失败) ret=0 成功返回/ret=1 参数错误/ret=2 频率受限 /ret=3 Token无效 /ret=4 服务器内部错误 /ret=5 用户操作错误 / ret=6 停机维护 / ret=7 身份失效

integer

None.

ErrCode

错误代码,因功能而异

integer

None.

Msg

返回信息

string

None.

SeqId

请求序列

integer

None.

InfoMsg

API附加信息

string

None.

application/json, text/json

Sample:
{
  "Data": {
    "Token": "sample string 1",
    "Url": "sample string 2",
    "UrlBase64": "sample string 3",
    "TVType": 4,
    "TVMac": "sample string 5",
    "FormatID": "6",
    "BindType": 7,
    "UIEdition": 0,
    "Member": {
      "Key": 1,
      "UID": "2",
      "UPic": "sample string 3",
      "SchoolID": "4",
      "ProvinceID": "5",
      "CityID": "6",
      "CountyID": "7",
      "SchoolName": "sample string 8",
      "SchoolLogo": "sample string 9",
      "ClassID": "10",
      "ClassName": "sample string 11",
      "ClassPic": "sample string 12",
      "MID": "13",
      "MTypeID": 14,
      "Name": "sample string 15",
      "UMID": "16",
      "IsCurrent": true,
      "IsVisitor": true
    },
    "MemberCnt": 8,
    "IsVisitor": false,
    "CanAddMember": true,
    "AccountEntry": "sample string 10",
    "CanUnBind": true,
    "SupportVisitor": true,
    "MemberSwitchAction": "sample string 13"
  },
  "Ret": 1,
  "ErrCode": 2,
  "Msg": "sample string 3",
  "SeqId": 4,
  "InfoMsg": "sample string 5"
}