RizrvDoc

Did You Know?

USERS

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

GET ALL USERS

GEThttps://apis.rizrv.in/api/user

Use LARAVEL cURL

                                        
                                            $token = "USER_AUTH_TOKEN";
                                            $ch = curl_init();
                                            $header = array();
                                            $header[] = 'Content-length: 0';
                                            $header[] = 'Content-type: application/json';
                                            $header[] = 'Authorization: Bearer '. $token;
                                            curl_setopt($ch, CURLOPT_URL,"https://apis.rizrv.in/api/user");
                                            curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
                                            curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'GET' );
                                            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": "success",
    "user": [
        {
            "id": 8,
            "name": "Er.Rahul Bathri",
            "first_name": "Rahul",
            "last_name": "Bathri",
            "email": "rahulbathrimspl@gmail.com",
            "email_verified_at": null,
            "password": "$2y$10$.F7IRG4ZdNctowpub5snUuQQXJgaeqhwn4rv1raALtVgDv2zQfG0u",
            "remember_token": null,
            "activated": 1,
            "token": "jstk348RRef3SSuULBWVe7GvipO9KC52eU0TUKouHyDKCvQrztBTXZ0Lx8UA6pWp",
            "signup_ip_address": null,
            "signup_confirmation_ip_address": null,
            "signup_sm_ip_address": null,
            "admin_ip_address": null,
            "updated_ip_address": null,
            "deleted_ip_address": null,
            "desktop_mac_id": null,
            "app_device_id": null,
            "google2fa_secret": null,
            "enable_2fa": 0,
            "lat_long": null,
            "created_at": "2023-08-09T11:33:29.000000Z",
            "updated_at": "2023-08-09T11:33:29.000000Z",
            "deleted_at": null,
            "profile": {
                "id": 6,
                "user_id": 8,
                "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-09T11:33:29.000000Z",
                "updated_at": "2023-08-09T11:33:29.000000Z",
                "deleted_at": null
            },
            "role": {
                "id": 5,
                "role_id": 3,
                "user_id": 8,
                "created_at": null,
                "updated_at": null,
                "deleted_at": null,
                "role": {
                    "id": 3,
                    "name": "Unverified",
                    "slug": "unverified",
                    "description": "Unverified Role",
                    "created_at": "2023-08-03T12:13:30.000000Z",
                    "updated_at": "2023-08-03T12:13:30.000000Z",
                    "deleted_at": null
                }
            }
        }
    ]
}
                                     

Welcome to Rizrv ! To add new roles call to the following url :

USERS DATE STORE

POSThttps://apis.rizrv.in/api/users/store

Parameter

Field Type

name

String

first_name

String

last_name

String

email

String

password

String

confirm_password

String

role

Integer

Use LARAVEL cURL

                                 
                                              $token = "USER_AUTH_TOKEN";
                                              $ch = curl_init();
                                              $header = array();
                                              $header[] = 'Content-length: 0';
                                              $header[] = 'Content-type: application/json';
                                              $header[] = 'Authorization: Bearer '. $token;
                                              curl_setopt($ch, CURLOPT_URL,"https://apis.rizrv.in/api/users/store");
                                              curl_setopt($ch, CURLOPT_POST, 1);
                                              curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
                                              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": "Success",
    "user": {
        "id": 13,
        "name": "Manish Kumar",
        "first_name": "Manish",
        "last_name": "Kumar",
        "email": "manishkumar@gmail.com",
        "email_verified_at": null,
        "password": "$2y$10$wIYttA5BeYZ6fhcgmY62Bu.j1qHNZeRPrFGB2xJ1uT1M8x6HjiRMm",
        "remember_token": null,
        "activated": 1,
        "token": "mHLtdmvfLQhxfxfXJsoAaL4KoYcoNe6rXCPc50sRUNA84cVeW8DcFjASRaVf1VA3",
        "signup_ip_address": null,
        "signup_confirmation_ip_address": null,
        "signup_sm_ip_address": null,
        "admin_ip_address": null,
        "updated_ip_address": null,
        "deleted_ip_address": null,
        "desktop_mac_id": null,
        "app_device_id": null,
        "google2fa_secret": null,
        "enable_2fa": 0,
        "lat_long": null,
        "created_at": "2023-08-18T06:11:53.000000Z",
        "updated_at": "2023-08-18T06:11:53.000000Z",
        "deleted_at": null,
        "profile": {
            "id": 11,
            "user_id": 13,
            "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-18T06:11:53.000000Z",
            "updated_at": "2023-08-18T06:11:53.000000Z",
            "deleted_at": null
        },
        "role": {
            "id": 10,
            "role_id": 1,
            "user_id": 13,
            "created_at": null,
            "updated_at": null,
            "deleted_at": null,
            "role": {
                "id": 1,
                "name": "super admin",
                "slug": "super-admin",
                "description": "welcomes",
                "created_at": "2023-08-03T12:13:30.000000Z",
                "updated_at": "2023-08-17T10:55:43.000000Z",
                "deleted_at": null
            }
        }
    }
}
                                     

Welcome to Rizrv ! To update users call to the following url using POST Method:

USER UPDATE

POSThttps://apis.rizrv.in/api/users/update/USER_ID

Parameter

Field Type

name

String

first_name

String

last_name

String

email

String

password

String

confirm_password

String

role

Integer

Use LARAVEL cURL

                                
                                    $token = "USER_AUTH_TOKEN";
                                     $ch = curl_init();
                                     $header = array();
                                     $header[] = 'Content-length: 0';
                                     $header[] = 'Content-type: application/json';
                                     $header[] = 'Authorization: Bearer '. $token;
                                     curl_setopt($ch, CURLOPT_URL,"https://apis.rizrv.in/api/users/update/USER_ID");
                                     curl_setopt($ch, CURLOPT_POST, 1);
                                     curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
                                     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": "updated",
    "user": {
        "id": 13,
        "name": "SurajKumar",
        "first_name": "Suraj",
        "last_name": "Kumar",
        "email": "manishkumar@gmail.com",
        "email_verified_at": null,
        "password": "$2y$10$wlQOCUGJ5R5xW6FscrnbDuyQpOKi3Eu0DDm9iSCMYkPBQLrGpo2.i",
        "remember_token": null,
        "activated": 1,
        "token": "mHLtdmvfLQhxfxfXJsoAaL4KoYcoNe6rXCPc50sRUNA84cVeW8DcFjASRaVf1VA3",
        "signup_ip_address": null,
        "signup_confirmation_ip_address": null,
        "signup_sm_ip_address": null,
        "admin_ip_address": null,
        "updated_ip_address": null,
        "deleted_ip_address": null,
        "desktop_mac_id": null,
        "app_device_id": null,
        "google2fa_secret": null,
        "enable_2fa": 0,
        "lat_long": null,
        "created_at": "2023-08-18T06:11:53.000000Z",
        "updated_at": "2023-08-18T06:24:34.000000Z",
        "deleted_at": null
    }
}
                                     

Welcome to Rizrv !To delete Users call to the following url using DELETE Method:

USERS AND STAFF DELETE

DELETEhttps://apis.rizrv.in/api/users/delete/USER_ID

Use LARAVEL cURL

                                
                                    $token = "USER_AUTH_TOKEN";
                                     $ch = curl_init();
                                     $header = array();
                                     $header[] = 'Content-length: 0';
                                     $header[] = 'Content-type: application/json';
                                     $header[] = 'Authorization: Bearer '. $token;
                                     curl_setopt($ch, CURLOPT_URL,"https://apis.rizrv.in/api/users/delete/USER_ID");
                                     curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
                                     curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
                                     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": "Deleted"
}