文档中心 > API类目 > 阿里体育API

alibaba.alisports.passport.account.tokenvalidate (阿里体育会员系统帐号登录注册token验证接口)

阿里体育会员系统帐号登录注册token验证接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
alisp_app_key String 必须 123456 业务方appkey
alisp_sign String 必须 testsign 签名
token String 可选 testtoken token
user_type Number 可选 1 注册用户类型
alisp_time String 必须 123342543 时间戳
secret String 可选 xxxxxxx 一键登录参数
ext_info String 可选 {"xxx":"xxx"} json字符串,传入扩展字段
mtop_appkey String 可选 60034690 选填,调用百川登录接口的appkey,百川登录时,需要传此字段

响应参数

名称 类型 示例值 描述
alisp_code Number 200 返回状态码
alisp_msg String 操作成功 返回状态信息
alisp_data String 返回数据结果
  • └ secret
  • String
  • ww5d6w1bvw
  • secret

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlisportsPassportAccountTokenvalidateRequest req = new AlibabaAlisportsPassportAccountTokenvalidateRequest();
req.setAlispAppKey("123456");
req.setAlispSign("testsign");
req.setToken("testtoken");
req.setUserType(1L);
req.setAlispTime("123342543");
req.setSecret("xxxxxxx");
req.setExtInfo("{\"xxx\":\"xxx\"}");
req.setMtopAppkey("60034690");
AlibabaAlisportsPassportAccountTokenvalidateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alisports_passport_account_tokenvalidate_response>
    <alisp_code>200</alisp_code>
    <alisp_msg>操作成功</alisp_msg>
    <alisp_data>
        <secret>ww5d6w1bvw</secret>
    </alisp_data>
</alibaba_alisports_passport_account_tokenvalidate_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部