mini-program/authorize

Description

  • Mini Program Authorization.

Request URL

  • http://127.0.0.1:8888/api/

Request Method

  • POST

Parameters

Parameter NameRequiredParameter TypeDescription
typeYesintAPI ID
appidYesstringMini-Program id
scopeYesstringPermission scope

权限类型

Permission TypeDescription
scope.userLocationPrecise location
scope.userFuzzyLocationApproximate location
scope.userLocationBackgroundBackground location
scope.recordMicrophone
scope.cameraCamera
scope.bluetoothBluetooth
scope.writePhotosAlbumAdd to Photos Album
scope.addPhoneContactAdd to Contacts
scope.addPhoneCalendarAdd to Calendar
scope.werunWeRun step count
scope.userInfoUser information (deprecated for Mini-Programs, available for Mini Games)

Request Example

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

Return Example

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

Return Parameter Description

Parameter NameParameter TypeDescription
error_codeintError code
descriptionstringError Description
datajsonBusiness data

Remark