<?php
$url = 'https://www.vendus.cv/ws/v1.1/helpdesk/categories/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($curl);
?>
<?php
$url = 'https://www.vendus.cv/ws/v1.1/helpdesk/categories/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$method = 'GET';
$params = array(
'seo_url' => 'asd',
'search' => 'asd',
);
$url .= '?' . http_build_query($params);
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
$result = curl_exec($curl);
?>
Name | Type | Example | Description |
---|---|---|---|
seo_url | string | asd | Search category by url |
search | string | asd | Search category by title |
Name | Type | Example | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | int | 123 | Category ID | ||||||||||||||||||||||||
parent_id | int | 123 | Category Parent id | ||||||||||||||||||||||||
parent | collection | 123 | Parent Category | ||||||||||||||||||||||||
seo_url | string | aaa-bb | Category seo url | ||||||||||||||||||||||||
name | string | name | Category name | ||||||||||||||||||||||||
description | string | 123 | Category ID | ||||||||||||||||||||||||
order | int | 1 | Category order | ||||||||||||||||||||||||
icon | string | icon.svg | Category icon | ||||||||||||||||||||||||
sub-categories | collection | ||||||||||||||||||||||||||
|
<?php
$url = 'https://www.vendus.cv/ws/v1.1/helpdesk/categories/12345/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($curl);
?>
<?php
$url = 'https://www.vendus.cv/ws/v1.1/helpdesk/categories/12345/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($curl);
?>
Name | Type | Example | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | int | 123 | Category ID | ||||||||||||||||||||||||
parent_id | int | 123 | Category Parent id | ||||||||||||||||||||||||
parent | collection | 123 | Parent Category | ||||||||||||||||||||||||
seo_url | string | aaa-bb | Category seo url | ||||||||||||||||||||||||
name | string | name | Category name | ||||||||||||||||||||||||
description | string | 123 | Category ID | ||||||||||||||||||||||||
order | int | 1 | Category order | ||||||||||||||||||||||||
icon | string | icon.svg | Category icon | ||||||||||||||||||||||||
sub-categories | collection | ||||||||||||||||||||||||||
|
<?php
$url = 'https://www.vendus.cv/ws/v1.1/helpdesk/categories/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$method = 'POST';
$params = array(
'name' => '123',
'description' => 'description',
'order' => 1,
'parent_id' => 123,
'icon' => 'icon.svg',
);
$content = json_encode($params);
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_HTTPHEADER,
array(
"Content-type: application/json",
"Content-Length: " . strlen($content),
)
);
$result = curl_exec($curl);
?>
Name | Type | Example | Description |
---|---|---|---|
name | string | 123 | Category Name |
description | string | description | Category Description |
order | int | 1 | Order |
parent_id | int | 123 | Parent Id |
icon | string | icon.svg | Category icon |
Name | Type | Example | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | int | 123 | Category ID | ||||||||||||||||||||||||
parent_id | int | 123 | Category Parent id | ||||||||||||||||||||||||
parent | collection | 123 | Parent Category | ||||||||||||||||||||||||
seo_url | string | aaa-bb | Category seo url | ||||||||||||||||||||||||
name | string | name | Category name | ||||||||||||||||||||||||
description | string | 123 | Category ID | ||||||||||||||||||||||||
order | int | 1 | Category order | ||||||||||||||||||||||||
icon | string | icon.svg | Category icon | ||||||||||||||||||||||||
sub-categories | collection | ||||||||||||||||||||||||||
|
<?php
$url = 'https://www.vendus.cv/ws/v1.1/helpdesk/categories/12345/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$method = 'PATCH';
$params = array(
'name' => '123',
'description' => 'description',
'order' => 1,
'icon' => 'icon.svg',
);
$content = json_encode($params);
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_HTTPHEADER,
array(
"Content-type: application/json",
"Content-Length: " . strlen($content),
)
);
$result = curl_exec($curl);
?>
Name | Type | Example | Description |
---|---|---|---|
name | string | 123 | Category Name |
description | string | description | Category Description |
order | int | 1 | Order |
icon | string | icon.svg | Category icon |
Name | Type | Example | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | int | 123 | Category ID | ||||||||||||||||||||||||
parent_id | int | 123 | Category Parent id | ||||||||||||||||||||||||
parent | collection | 123 | Parent Category | ||||||||||||||||||||||||
seo_url | string | aaa-bb | Category seo url | ||||||||||||||||||||||||
name | string | name | Category name | ||||||||||||||||||||||||
description | string | 123 | Category ID | ||||||||||||||||||||||||
order | int | 1 | Category order | ||||||||||||||||||||||||
icon | string | icon.svg | Category icon | ||||||||||||||||||||||||
sub-categories | collection | ||||||||||||||||||||||||||
|
<?php
$url = 'https://www.vendus.cv/ws/v1.1/helpdesk/categories/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($curl);
?>
Name | Type | Example | Description |
---|---|---|---|
response | string |