Native Social Login API

Access Token via Facebook Token

copy-icon
curl -X GET \
'https://api.loginradius.com/api/v2/access_token/facebook?Fb_Access_Token=&Key=' \
-H 'Cache-Control: no-cache' \
-H 'content-Type: application/json' \

The above command returns JSON structured like this:

copy-icon
{
"access_token" : "Uniquely generated identifier key by LoginRadius that is activated after successful authentication.",
"expires_in" : "Expiration time of Access Token",
"refresh_token" : "refresh token to refresh access token",
"session_expires_in" : "session token expiry time",
"session_token" : "session token of user"
}

The API is used to get LoginRadius access token by sending Facebook's access token. It will be valid for the specific duration of time specified in the response.

HTTP Request

Get /api/v2/access_token/facebook?Fb_Access_Token=&Key=

Query Parameters

ParameterDefaultDescription
FbAccessTokennoneFacebook Access Token [Required]
KeynoneLoginRadius API Key [Required]

Access Token via Twitter Token

copy-icon
curl -X GET \
'https://api.loginradius.com/api/v2/access_token/twitter?Key=&Tw_Access_Token=&Tw_Token_Secret=' \
-H 'Cache-Control: no-cache' \
-H 'content-Type: application/json' \

The above command returns JSON structured like this:

copy-icon
{
"access_token" : "Uniquely generated identifier key by LoginRadius that is activated after successful authentication.",
"expires_in" : "Expiration time of Access Token",
"refresh_token" : "refresh token to refresh access token",
"session_expires_in" : "session token expiry time",
"session_token" : "session token of user"
}

The API is used to get LoginRadius access token by sending Twitter's access token. It will be valid for the specific duration of time specified in the response.

HTTP Request

Get /api/v2/access_token/twitter?Key=&Tw_Access_Token=&Tw_Token_Secret=

Query Parameters

ParameterDefaultDescription
KeynoneLoginRadius API Key [Required]
TwAccessTokennoneTwitter Access Token [Required]
TwTokenSecretnoneTwitter Token Secret [Required]

Access Token via Google Token

copy-icon
curl -X GET \
'https://api.loginradius.com/api/v2/access_token/google?Google_Access_Token=&Key=&client_id=&refresh_token=' \
-H 'Cache-Control: no-cache' \
-H 'content-Type: application/json' \

The above command returns JSON structured like this:

copy-icon
{
"access_token" : "Uniquely generated identifier key by LoginRadius that is activated after successful authentication.",
"expires_in" : "Expiration time of Access Token",
"refresh_token" : "refresh token to refresh access token",
"session_expires_in" : "session token expiry time",
"session_token" : "session token of user"
}

The API is used to get LoginRadius access token by sending Google's access token. It will be valid for the specific duration of time specified in the response.

HTTP Request

Get /api/v2/access_token/google?Google_Access_Token=&Key=&client_id=&refresh_token=

Query Parameters

ParameterDefaultDescription
GoogleAccessTokennoneGoogle Access Token [Required]
KeynoneLoginRadius API Key [Required]
client_idnoneGoogle Client ID [Optional]
refresh_tokennoneLoginRadius refresh token [Optional]

Access Token using google JWT token for Native Mobile Login

copy-icon
curl -X GET \
'https://api.loginradius.com/api/v2/access_token/googlejwt?Id_Token=&Key=' \
-H 'Cache-Control: no-cache' \
-H 'content-Type: application/json' \

The above command returns JSON structured like this:

copy-icon
{
"access_token" : "Uniquely generated identifier key by LoginRadius that is activated after successful authentication.",
"expires_in" : "Expiration time of Access Token",
"refresh_token" : "refresh token to refresh access token",
"session_expires_in" : "session token expiry time",
"session_token" : "session token of user"
}

This API is used to Get LoginRadius Access Token using google jwt id token for google native mobile login/registration.

HTTP Request

Get /api/v2/access_token/googlejwt?Id_Token=&Key=

Query Parameters

ParameterDefaultDescription
Id_TokennoneGoogle JWT id_token [Required]
KeynoneLoginRadius API Key [Required]

Access Token via Linkedin Token

copy-icon
curl -X GET \
'https://api.loginradius.com/api/v2/access_token/linkedin?Key=&Ln_Access_Token=' \
-H 'Cache-Control: no-cache' \
-H 'content-Type: application/json' \

The above command returns JSON structured like this:

copy-icon
{
"access_token" : "Uniquely generated identifier key by LoginRadius that is activated after successful authentication.",
"expires_in" : "Expiration time of Access Token",
"refresh_token" : "refresh token to refresh access token",
"session_expires_in" : "session token expiry time",
"session_token" : "session token of user"
}

The API is used to get LoginRadius access token by sending Linkedin's access token. It will be valid for the specific duration of time specified in the response.

HTTP Request

Get /api/v2/access_token/linkedin?Key=&Ln_Access_Token=

Query Parameters

ParameterDefaultDescription
KeynoneLoginRadius API Key [Required]
LnAccessTokennoneLinkedin Access Token [Required]

Access Token By Foursquare Access Token

copy-icon
curl -X GET \
'https://api.loginradius.com/api/v2/access_token/foursquare?Fs_Access_Token=&Key=' \
-H 'Cache-Control: no-cache' \
-H 'content-Type: application/json' \

The above command returns JSON structured like this:

copy-icon
{
"access_token" : "Uniquely generated identifier key by LoginRadius that is activated after successful authentication.",
"expires_in" : "Expiration time of Access Token",
"refresh_token" : "refresh token to refresh access token",
"session_expires_in" : "session token expiry time",
"session_token" : "session token of user"
}

The API is used to get LoginRadius access token by sending Foursquare's access token. It will be valid for the specific duration of time specified in the response.

HTTP Request

Get /api/v2/access_token/foursquare?Fs_Access_Token=&Key=

Query Parameters

ParameterDefaultDescription
FsAccessTokennoneFoursquare Access Token [Required]
KeynoneLoginRadius API Key [Required]

Access Token By Google Auth Code

copy-icon
curl -X GET \
'https://api.loginradius.com/api/v2/access_token/google?apikey=&google_authcode=' \
-H 'Cache-Control: no-cache' \
-H 'content-Type: application/json' \

The above command returns JSON structured like this:

copy-icon
{
"access_token" : "Uniquely generated identifier key by LoginRadius that is activated after successful authentication.",
"expires_in" : "Expiration time of Access Token",
"refresh_token" : "refresh token to refresh access token",
"session_expires_in" : "session token expiry time",
"session_token" : "session token of user"
}

The API is used to get LoginRadius access token by sending Google's AuthCode. It will be valid for the specific duration of time specified in the response.

HTTP Request

Get /api/v2/access_token/google?apikey=&google_authcode=

Query Parameters

ParameterDefaultDescription
apikeynoneLoginRadius API Key [Required]
google_authcodenoneGoogle AuthCode [Required]