Partner: Badge API
| Endpoint | Method | Description |
|---|---|---|
| /api/v0/partnerRpc/badge.createUserBadge | jsonRpc | Create user badge |
| /api/v0/partnerRpc/badge.listUserBadges | jsonRpc | List user badges |
Create user badge
Method: jsonRpc
HTTP Method: POST
Path: /api/v0/partnerRpc/badge.createUserBadge
Request:
{
"userId": string
"badge": {
"badgeType": string
"data": map[string]{ custom structure }
}
}
Response:
{ empty }
List user badges
Method: jsonRpc
HTTP Method: POST
Path: /api/v0/partnerRpc/badge.listUserBadges
Request:
{
"userId": string
"offset": int
"size": int
}
Response:
{
"data": {
"badges": [{
"userId": string
"id": string
"created": timestamp
"updated": timestamp
"badgeType": string
"data": map[string]{ custom structure }
}]
}
"error": { "status": bool, "code": int, "message": string }
}