User login

Please use this (https://tutki.ru/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

{
        "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": "Incorrect Credentials",
        "data": []
    }

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