Skip to content

API Routes

API Routes

The following API routes are available with SocialConnect installed.

Route: https://example.com/api/social_connect/{token}/{steam}/{function}

  • {token} is SocialConnects API Token(if noting generated yet, click the refresh button, and it will generate one).
  • {steam} is the users Steam ID
  • {function} is one of the following functions:

GET get_user

Returns a users stored details that is social media related, if no data is available for a key null is returned.

STATUS 200
{
  "name":"Stantastic",
  "discord":"220392453599920128",
  "isDiscordServerMember":true,
  "isYoutubeSubscribed":false, 
  "isTwitchFollowing":null,
  "isSteamGroupMember":null
}

POST update_user

Updates a users details that is social media related, returns STATUS 200 on success.

  discord=220392453599920128
  isTwitchFollowing=true

Tip

Use POSTMAN to test API requests. You can find it here: POSTMAN.