小程序/小程序授权

简要描述

  • 小程序授权。

请求URL

  • http://127.0.0.1:8888/api/

请求方式

  • POST

参数

参数名必选类型说明
typeint接口编号
appidstring搜索关键词
scopestring权限类型

权限类型

权限类型说明
scope.userLocation精确地理位置
scope.userFuzzyLocation模糊地理位置
scope.userLocationBackground后台定位
scope.record麦克风
scope.camera摄像头
scope.bluetooth蓝牙
scope.writePhotosAlbum添加到相册
scope.addPhoneContact添加到联系人
scope.addPhoneCalendar添加到日历
scope.werun微信运动步数
scope.userInfo用户信息(小程序已废弃,小游戏可用)

请求示例

 {
  "type": 70,
  "appid": "wx...",
  "scope": "scope.userLocation"
 } 

返回示例

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

返回参数说明

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

备注