请求参数
| 参数 | 位置 / 类型 | 说明 |
|---|
source | query / any | Income source: all, pay-per-use, or subscription. Default all. |
currency | query / any | Settlement currency. |
pageSize | query / any | Page size. Default 100, max 100. |
pageToken | query / any | Opaque pagination token. |
请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X GET 'https://loomloom.shengsuanyun.com/loom/v1/creators/me/earnings' \
-H 'Authorization: Bearer YOUR_API_KEY'
响应
200 OK
application/json
| 字段 | 类型 | 说明 |
|---|
items | array | 展开结构array
数组元素| 字段 | 类型 | 说明 |
|---|
amount | object | 展开结构| 字段 | 类型 | 说明 |
|---|
amount必填 | string | | currency必填 | string | |
| amountT | integer | | creatorUserId | integer | | currency | string | | id | string | | incomePostStatus | string | | listingId | string | | listingVersionId | string | | occurredAt | string | | runId | string | | runTransactionId | string | | source | string | | sourceEventId | string | |
|
nextPageToken | string | |
totalAmount | object | 展开结构| 字段 | 类型 | 说明 |
|---|
amount必填 | string | | currency必填 | string | |
|
totalAmountT | integer | |
totalCount | integer | |
{
"items": [
{
"amount": {
"amount": "1.7027920",
"currency": "CNY"
},
"amountT": 0,
"creatorUserId": 0,
"currency": "string",
"id": "string",
"incomePostStatus": "string",
"listingId": "string",
"listingVersionId": "string",
"occurredAt": "string",
"runId": "string",
"runTransactionId": "string",
"source": "string",
"sourceEventId": "string"
}
],
"nextPageToken": "string",
"totalAmount": {
"amount": "1.7027920",
"currency": "CNY"
},
"totalAmountT": 0,
"totalCount": 0
}
400 Bad Request
application/json
| 字段 | 类型 | 说明 |
|---|
code | string | |
error | string | |
{
"code": "string",
"error": "string"
}
401 Unauthorized
application/json
| 字段 | 类型 | 说明 |
|---|
code | string | |
error | string | |
{
"code": "string",
"error": "string"
}
500 Internal Server Error
application/json
| 字段 | 类型 | 说明 |
|---|
code | string | |
error | string | |
{
"code": "string",
"error": "string"
}