Network

Get a link and session_token to redirect the user in order to authorize a network

post/network/add

Request

Request body

service_tokenstring required

The token for your service

access_tokenstring required

The access token for the authenticated user.

network_idinteger required

The ID of the social media network.

network_type_idinteger required

The network type ID: 0 = Profile, 1 = Page, 2 = Group.

filter_levelstring

The filter applied to shown groups and pages by their access level. Currently available for VK (network 17) with the value "admin".

languagestring

The language used for the authorization flow or form.

Response

OK

auth_linkstring
session_tokenstring
expired_instring

Example response

{
  "auth_link": "https://api.blog2social.com/auth/v1/?b2s_session_token=abc123defg456hij789klm",
  "session_token": "abc123defg456hij789klm",
  "expired_in": "unix-timestamp"
}

Changes