FRANCHISE
Welcome to Rizrv ! To get characters you need to make a call to the following url :
GET ALL FRANCHISE
GEThttps://apis.rizrv.in/api/franchiseUse 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/franchise");
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",
"franchise": [
{
"id": 8,
"name": "French",
"first_name": "Frenchone",
"last_name": "Modellast",
"email": "franchise@admin.com",
"email_verified_at": null,
"password": "$2y$10$Ooll8YwWRfTEmk65R0CRTuKzn6TCJLyHnrg3Nu7mbKdG3l5/83eoK",
"remember_token": null,
"activated": 1,
"token": "LqbyjKvEWk9ex3boF8qXFEoBgwKl6Uhh3QausgJApf8th5aWPDAFkpJiDGZH7Kk9",
"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,
"created_at": "2023-08-08T11:22:01.000000Z",
"updated_at": "2023-08-08T12:09:20.000000Z",
"deleted_at": null,
"detail": {
"id": 8,
"franchise_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-08T11:22:01.000000Z",
"updated_at": "2023-08-08T11:22:01.000000Z",
"deleted_at": null
},
"role": {
"id": 5,
"role_id": 2,
"franchise_id": 8,
"created_at": null,
"updated_at": null,
"deleted_at": null,
"role": {
"id": 2,
"name": "User",
"slug": "user",
"description": "User Role",
"created_at": "2023-08-03T17:43:30.000000Z",
"updated_at": "2023-08-03T17:43:30.000000Z",
"deleted_at": null
}
}
}
]
}