外观
当前应用
GET /me
| 权限范围 | 幂等 | operationId |
|---|---|---|
| 任意有效凭证 | 只读 | Me_me |
店铺(名称、H5 地址)、应用名、权限范围、资金上限与今日已用、今日调用量与配额、限流档位。任意有效凭证都能调。
示例
js
const res = await client.get("/me");http
GET /open/v1/me HTTP/1.1
Host: api.sybb.pw
Authorization: SY-HMAC-SHA256 Credential=ak_…, Timestamp=1796035200, Nonce=…, Signature=…响应 200:
json
{
"appId": "x_1e1zmYuerOzJaV8oHC65N0f",
"appName": "吉祥物",
"environment": "live",
"store": {
"name": "周末双排体验券",
"h5Url": "https://demo.sybb.pw"
},
"scopes": [
"string"
],
"fundLimits": {
"dailyRechargeLimitCents": 10000,
"dailyGiftLimitCents": 10000,
"singleLimitCents": 10000,
"todayRechargeCents": 10000,
"todayGiftCents": 10000
},
"quota": {
"dailyCalls": 1,
"todayCalls": 1
},
"rateLimit": {
"readPerSecond": 1,
"writePerSecond": 1
}
}响应
Me
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
appId | string | 应用 ID | |
appName | string | 应用名称 | |
environment | string | live 正式 / test 测试店铺 | |
store | Store | 店铺 | |
scopes | string[] | 应用拥有的权限范围 | |
fundLimits | Limits | 资金类每日上限(店铺设置;null = 不限) | |
quota | Quota | 调用量配额 | |
rateLimit | RateLimit | 限流 |
Store
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
name | string | 名称 | |
h5Url | string | 店铺 H5 地址 |
Limits
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
dailyRechargeLimitCents | integer | 金额(分) | |
dailyGiftLimitCents | integer | 金额(分) | |
singleLimitCents | integer | 金额(分) | |
todayRechargeCents | integer | 是 | 金额(分) |
todayGiftCents | integer | 是 | 金额(分) |
Quota
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
dailyCalls | integer | 是 | 每日调用量配额 |
todayCalls | integer | 是 | 今日已用调用量 |
RateLimit
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
readPerSecond | integer | 是 | 读接口每秒请求数上限 |
writePerSecond | integer | 是 | 写接口每秒请求数上限 |
错误
签名、权限、限流等通用错误见错误处理。