Socials
The Socials API provides a set of endpoints to interact with social media or other providers a user has linked with Gamerbase.
List Attached Socials
get
Responses
400
Generic Client Error
application/json
401
Authentication related errors:
- `GENERIC_UNAUTHORIZED`: Generic unauthorized access error.
- `SESSION_TOKEN_EXPIRED`: User session has expired.
- `REFRESH_TOKEN_EXPIRED`: Refresh token has expired.
application/json
404
Generic not found
application/json
500
Internal server error
application/json
default
application/json
get
GET /v1/user/socials HTTP/1.1
Host:
Accept: */*
{
"code": 10002,
"message": "generic_client_error"
}
Attach Socials
post
Body
accountTypestringRequired
subjectIdstringRequired
publicbooleanRequired
handlestringOptional
serverstringOptional
expiryDatestringOptional
extraArgsobjectOptional
createdAtobjectOptional
userTokenstringOptional
refreshTokenstringOptional
Responses
400
Generic Client Error
application/json
401
Authentication related errors:
- `GENERIC_UNAUTHORIZED`: Generic unauthorized access error.
- `SESSION_TOKEN_EXPIRED`: User session has expired.
- `REFRESH_TOKEN_EXPIRED`: Refresh token has expired.
application/json
404
Generic not found
application/json
500
Internal server error
application/json
default
application/json
post
POST /v1/user/socials HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 178
{
"accountType": "text",
"subjectId": "text",
"public": true,
"handle": "text",
"server": "text",
"expiryDate": "text",
"extraArgs": {},
"createdAt": {},
"userToken": "text",
"refreshToken": "text"
}
{
"code": 10002,
"message": "generic_client_error"
}
Get Socials by Type
get
Path parameters
typestringRequired
Responses
400
Generic Client Error
application/json
401
Authentication related errors:
- `GENERIC_UNAUTHORIZED`: Generic unauthorized access error.
- `SESSION_TOKEN_EXPIRED`: User session has expired.
- `REFRESH_TOKEN_EXPIRED`: Refresh token has expired.
application/json
404
Generic not found
application/json
500
Internal server error
application/json
default
application/json
get
GET /v1/user/socials/{type} HTTP/1.1
Host:
Accept: */*
{
"code": 10002,
"message": "generic_client_error"
}
Update User Socials
post
Body
socialIdstringRequired
handlestringOptional
serverstringOptional
expiryDatestringOptional
extraArgsobjectOptional
createdAtobjectOptional
userTokenstringOptional
refreshTokenstringOptional
publicbooleanOptional
Responses
400
Generic Client Error
application/json
401
Authentication related errors:
- `GENERIC_UNAUTHORIZED`: Generic unauthorized access error.
- `SESSION_TOKEN_EXPIRED`: User session has expired.
- `REFRESH_TOKEN_EXPIRED`: Refresh token has expired.
application/json
404
Generic not found
application/json
500
Internal server error
application/json
default
application/json
post
POST /v1/user/socials/update HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 156
{
"socialId": "text",
"handle": "text",
"server": "text",
"expiryDate": "text",
"extraArgs": {},
"createdAt": {},
"userToken": "text",
"refreshToken": "text",
"public": true
}
{
"code": 10002,
"message": "generic_client_error"
}
Delete User Social
delete
Path parameters
idstringRequired
Responses
400
Generic Client Error
application/json
401
Authentication related errors:
- `GENERIC_UNAUTHORIZED`: Generic unauthorized access error.
- `SESSION_TOKEN_EXPIRED`: User session has expired.
- `REFRESH_TOKEN_EXPIRED`: Refresh token has expired.
application/json
404
Generic not found
application/json
500
Internal server error
application/json
default
application/json
delete
DELETE /v1/user/socials/{id} HTTP/1.1
Host:
Accept: */*
{
"code": 10002,
"message": "generic_client_error"
}
User Wallet
get
Responses
400
Generic Client Error
application/json
401
Authentication related errors:
- `GENERIC_UNAUTHORIZED`: Generic unauthorized access error.
- `SESSION_TOKEN_EXPIRED`: User session has expired.
- `REFRESH_TOKEN_EXPIRED`: Refresh token has expired.
application/json
404
Generic not found
application/json
500
Internal server error
application/json
default
application/json
get
GET /v1/user/wallet HTTP/1.1
Host:
Accept: */*
{
"code": 10002,
"message": "generic_client_error"
}
Last updated