RizrvDoc

Did You Know?

ADMIN LOGIN

Welcome to Rizrv ! To get characters you need to make a POST call to the following url :

POST

POSThttps://apis.rizrv.in/api/auth/login

Parameter

Field Type

email

String

password

String

desktop_mac_id (input hidden field IP address)

String

location (input hidden field)

latitude, longitude

Use LARAVEL cURL

                
                    $ch = curl_init();
                    curl_setopt($ch, CURLOPT_URL, $url);
                    curl_setopt($ch, CURLOPT_POST, 1);
                    curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
                    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                    $server_output = curl_exec($ch);
                    curl_close($ch);
                    $response = json_decode($server_output, true);
                    if ($response) { ... } else { ... }
                
            
    {
    "status": 200,
    "message": "Login Success",
    "user": {
    "id": 3,
    "name": "Admin",
    "first_name": "Harry",
    "last_name": "Potter",
    "email": "admin@admin.com",
    "email_verified_at": null,
    "password": "$2y$10$DkQRKoaqMwJ3cOFm7eJV8u3BNBUTPOv2quUzMDF7rOE/YhIQnrG0m",
    "remember_token": null,
    "activated": 1,
    "token": "218|UIKbEYdoMVMzywjN0vrv27uDaRcblFvZiNpdaBTp",
    "signup_ip_address": null,
    "signup_confirmation_ip_address": "127.0.0.1",
    "signup_sm_ip_address": null,
    "admin_ip_address": "127.0.0.1",
    "updated_ip_address": null,
    "deleted_ip_address": null,
    "desktop_mac_id": "2156415415",
    "app_device_id": null,
    "google2fa_secret": "ZY3POUF24J2NBC5M",
    "enable_2fa": 0,
    "lat_long": "23.1781224,75.7882924",
    "created_at": "2023-08-03T12:31:13.000000Z",
    "updated_at": "2023-08-17T09:28:41.000000Z",
    "deleted_at": null,
    "role": {
    "id": 1,
    "role_id": 1,
    "user_id": 3,
    "created_at": null,
    "updated_at": null,
    "deleted_at": null,
    "role": {
    "id": 1,
    "name": "Super Admin",
    "slug": "super-admin",
    "description": null,
    "created_at": "2023-08-03T12:13:30.000000Z",
    "updated_at": "2023-08-11T07:56:18.000000Z",
    "deleted_at": null,
    "permission_role": []
    }
    },
    "profile": {
    "id": 1,
    "user_id": 3,
    "location": null,
    "bio": null,
    "dob": null,
    "address": null,
    "phone": null,
    "twitter_username": null,
    "github_username": null,
    "avatar": null,
    "avatar_status": 0,
    "created_at": "2023-08-03T12:31:14.000000Z",
    "updated_at": "2023-08-03T12:31:14.000000Z",
    "deleted_at": null
    }
    }
    }