发送消息/发送位置

简要描述

  • 发送位置消息。

请求URL

  • http://127.0.0.1:8888/api/

请求方式

  • POST

参数

参数名必选类型说明
typeint接口编号
userNamestring接收人wxid
longitudedouble经度
latitudedouble纬度
labelstring地理位置信息(大)
poiNamestring地理位置信息(小)
poiIdstring腾讯地图ID
isFromPoiListbool是否来自poilist
bAsyncbool如果将该参数设置为true,则任务不再阻塞,接口响应内容会通过消息处理器返回,消息推送类型为0<br/>如果提供了asyncUserData参数,会随调用结果一起推送
asyncUserDatastrxxxx

请求示例

 {
  "type": 10022,
  "userName": "filehelper",
  "longitude": 104.56634521484375,
  "latitude": 38.00156021118164,
  "label": "阿拉善左旗",
  "poiName": "阿拉善左旗腾格里额里斯镇其日格呼都格",
  "poiId": "17209047574645427176",
  "isFromPoiList": false
 } 

返回示例

  {
    "data": {
      "status": 0,
      "desc": "",
    }
  }

返回参数说明

参数名类型说明
error_codeint错误代码
descriptionstring错误描述
datajson业务数据

备注