mini-program/authorize
Description
- Mini Program Authorization.
Request URL
http://127.0.0.1:8888/api/
Request Method
Parameters
| Parameter Name | Required | Parameter Type | Description |
|---|
| type | Yes | int | API ID |
| appid | Yes | string | Mini-Program id |
| scope | Yes | string | Permission scope |
权限类型
| Permission Type | Description |
|---|
| scope.userLocation | Precise location |
| scope.userFuzzyLocation | Approximate location |
| scope.userLocationBackground | Background location |
| scope.record | Microphone |
| scope.camera | Camera |
| scope.bluetooth | Bluetooth |
| scope.writePhotosAlbum | Add to Photos Album |
| scope.addPhoneContact | Add to Contacts |
| scope.addPhoneCalendar | Add to Calendar |
| scope.werun | WeRun step count |
| scope.userInfo | User 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 Name | Parameter Type | Description |
|---|
| error_code | int | Error code |
| description | string | Error Description |
| data | json | Business data |