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

alibaba.alisports.taotie.steps.post (步数上传接口)

乐动力app上传每日走路步数

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
upload_steps Json 必须 {"channel":"taobao","dailyStepList":[{"lastTimestamp":1532491073373,"timeZone":28800000,"totalSteps":789}],"systemTimestamp":1532491073373} 上传的步数信息
uid String 必须 6658 用户id

响应参数

名称 类型 示例值 描述
result Result { "headers": {}, "success": true, "model": { "lastTimestamp": 1532486772593, "totalSteps": 345, "timeZone": 2800000, "class": "com.alisports.steps.pojo.dto.DailyStep" }, "bizExtMap": null, "mappingCode": null, "class": "com.taobao.mtop.common.Result", "msgInfo": "成功", "msgCode": "0", "httpStatusCode": 200 } result
  • └ headers
  • String
  • {}
  • headers
  • └ mapping_code
  • String
  • null
  • mappingCode
  • └ model
  • String
  • { "lastTimestamp": 1532486772593, "totalSteps": 345, "timeZone": 2800000, "class": "com.alisports.steps.pojo.dto.DailyStep" }
  • model
  • └ http_status_code
  • Number
  • 200
  • httpStatusCode
  • └ biz_ext_map
  • String
  • null
  • bizExtMap
  • └ msg_code
  • String
  • 1
  • msgCode
  • └ msg_info
  • String
  • 1
  • msgInfo
  • └ success
  • Boolean
  • true
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlisportsTaotieStepsPostRequest req = new AlibabaAlisportsTaotieStepsPostRequest();
req.setUploadStepsString("{\"channel\":\"taobao\",\"dailyStepList\":[{\"lastTimestamp\":1532491073373,\"timeZone\":28800000,\"totalSteps\":789}],\"systemTimestamp\":1532491073373}");
req.setUid("6658");
AlibabaAlisportsTaotieStepsPostResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alisports_taotie_steps_post_response>
    <result>
        <headers>{}</headers>
        <mapping_code>null</mapping_code>
        <model>{ &quot;lastTimestamp&quot;: 1532486772593, &quot;totalSteps&quot;: 345, &quot;timeZone&quot;: 2800000, &quot;class&quot;: &quot;com.alisports.steps.pojo.dto.DailyStep&quot; }</model>
        <http_status_code>200</http_status_code>
        <biz_ext_map>null</biz_ext_map>
        <msg_code>1</msg_code>
        <msg_info>1</msg_info>
        <success>true</success>
    </result>
</alibaba_alisports_taotie_steps_post_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

返回
顶部