# wx.shareToWeRun(Object object)

> __以 [Promise 风格](/miniprogram/dev/framework/app-service/api.md#异步-API-返回-Promise) 调用__：支持
> 
> __小程序插件__：不支持

> 相关文档: [分享数据到微信运动](/miniprogram/dev/framework/open-ability/share-werun.md)

## 功能描述

分享数据到微信运动。

## 参数

### Object object


```json
[
  {
    "属性": "recordList",
    "类型": "Array.<Object>",
    "默认值": "",
    "必填": "是",
    "说明": "运动数据列表",
    "子项": [
      {
        "结构属性": "typeId",
        "类型": "number",
        "默认值": "",
        "必填": "是",
        "说明": "运动项目id"
      },
      {
        "结构属性": "time",
        "类型": "number",
        "默认值": "",
        "必填": "是",
        "说明": "运动时长"
      },
      {
        "结构属性": "distance",
        "类型": "number",
        "默认值": "",
        "必填": "是",
        "说明": "运动距离"
      },
      {
        "结构属性": "calorie",
        "类型": "number",
        "默认值": "",
        "必填": "是",
        "说明": "消耗卡路里"
      }
    ]
  },
  {
    "属性": "success",
    "类型": "function",
    "默认值": "",
    "必填": "否",
    "说明": "接口调用成功的回调函数"
  },
  {
    "属性": "fail",
    "类型": "function",
    "默认值": "",
    "必填": "否",
    "说明": "接口调用失败的回调函数"
  },
  {
    "属性": "complete",
    "类型": "function",
    "默认值": "",
    "必填": "否",
    "说明": "接口调用结束的回调函数（调用成功、失败都会执行）"
  }
]
```
