XBorg SDK
  • Introduction
  • Community
    • Details
    • Resources
    • Inventory
    • Prizes
    • Store
    • Achievements
  • User
    • Profile
    • Authentication
    • Socials
    • Wallets
  • Quests
    • User
    • Community
  • Quest Events
    • Details
    • Participation
    • Leaderboard
  • Blockchain
  • Configuration
  • Shared Library SDK
    • Authentication & Setup
    • Quest Management
    • Event Management
      • Working with Events
      • Events Lifecycle
      • Events Requirements
      • Events Quests
      • Events Rewards
    • Quest Rewards
    • 3D Avatar
Powered by GitBook
On this page
  1. User

Socials

The Socials API provides a set of endpoints to interact with social media or other providers a user has linked with Gamerbase.

PreviousAuthenticationNextWallets

Last updated 4 months ago

List Attached Socials

Attach Socials

Get Socials by Type

Update User Socials

Delete User Social

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/socials HTTP/1.1
Host: 
Accept: */*
{
  "code": 10002,
  "message": "generic_client_error"
}
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"
}
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"
}
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"
}
  • List Attached Socials
  • GET/v1/user/socials
  • Attach Socials
  • POST/v1/user/socials
  • Get Socials by Type
  • GET/v1/user/socials/{type}
  • Update User Socials
  • POST/v1/user/socials/update
  • Delete User Social
  • DELETE/v1/user/socials/{id}
  • User Wallet
  • GET/v1/user/wallet
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"
}
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"
}