账户
查询积分余额
GET
/
v1
/
credits
查询积分余额
curl --request GET \
--url https://apis.viggle.ai/v1/credits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apis.viggle.ai/v1/credits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apis.viggle.ai/v1/credits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"balance": 123
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}授权
⌘I
查询积分余额
curl --request GET \
--url https://apis.viggle.ai/v1/credits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apis.viggle.ai/v1/credits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apis.viggle.ai/v1/credits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"balance": 123
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}