User login

Please use this (http://rgv.me/mobile_api/login) API to access user login endpoint


Post parameters

Field Value Remarks
email User e-mail address E.g. mansurTL@gmail.com
password User password E.g. 123456
device_type Client device type ios/android (Default is android)

Success response

{
    "err_code": 0,
    "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

{
    "err_code": "invalid_creds",
    "code": 402,
    "message": "Incorrect Credentials",
    "data": []
}

{
    "err_code": "invalid_device_type",
    "code": 402,
    "message": "Incorrect device type",
    "data": []
}