CATEGORY
Welcome to Rizrv ! To get characters you need to make a call to the following url :
GET ALL CATEGORY
GEThttps://apis.rizrv.in/api/services/category/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/services/category/");
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",
"categories": [
{
"id": 1,
"name": "electronic",
"description": "Loren Ipsumn",
"status": "1",
"parent": "1",
"image": "services/categories/1692858097category.png",
"created_at": "2023-08-08T11:22:01.000000Z",
"updated_at": "2023-08-08T12:09:20.000000Z",
}
]
}