Social login
Please use this (https://www.dailysportsupdated.com/mobile_api/oauth) API to access user social (oAuth2 API) login endpoint
Post parameters
Field | Value | Remarks |
---|---|---|
access_token | API access token | E.g. ya29.a0AfH6SMBPzaEI2NaZyo_sui... |
type | API provider name | E.g. `facebook` or `google` |
device_type | Client device type | ios/android (Default is android) |
Success response
{
"code": 200,
"message": "User logged in successfully",
"data": {
"id": 7,
"first_name": "Dan",
"last_name": "Kassing",
"user_name": "dan_kassing",
"email": "dan_kassing@gmail.com",
"is_verified": true,
"website": "",
"about_you": "",
"gender": "M",
"country": "United States",
"post_count": 4045,
"last_post": 0,
"last_ad": 0,
"language": "english",
"following_count": 1,
"follower_count": 3512,
"wallet": "323.56",
"ip_address": "127.0.0.1",
"last_active": "1601382349",
"member_since": "Jul 2020",
"profile_privacy": "followers"
},
"auth": {
"auth_token": "c625cc16eb00960f076c1378c7b84ede29c01ed516013823754d476ebd93c709a1bb49b39eba40738a",
"refresh_token": "de25cc16eb00960f076c1378c7b84ede29c01ed516013823754d476ebd93c709a1bb49b39eba40738a",
"auth_token_expiry": 1916742375
}
}
Error responses
{
"code": 402,
"message": "Access token is invalid or missing",
"data":[],
"error": {
"error": "invalid_request",
"error_description": "Invalid Credentials"
}
}
{
"code": 400,
"message": "oAuth provider type is missing or invalid",
"data": []
}
{
"code": 500,
"message": "API Error – API unavailable",
"data": []
}