Introduction
App works like laravel api + vuejs render. You can use this doc as quick start.
Only the main functions are described here. All functions available in vuejs are also available through api. Missing examples you can get through the network manager in the app
Base URL
https://{app}.admin.ux.im
Authenticating requests
This API is not authenticated.
File Manger
Initialize file manager
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/initialize',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/initialize" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
Get files and directories for the selected path and disk
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/content',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'optio',
'path' => 'nihil',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/content" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"optio\",
\"path\": \"nihil\"
}"
Received response:
Request failed with error:
Directory tree
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/tree',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'ab',
'path' => 'sed',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/tree" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"ab\",
\"path\": \"sed\"
}"
Received response:
Request failed with error:
Check the selected disk
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/select-disk',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'et',
'path' => 'officiis',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/select-disk" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"et\",
\"path\": \"officiis\"
}"
Received response:
Request failed with error:
Upload files
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/file-manager/upload',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'consequatur',
'path' => 'ullam',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/file-manager/upload" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"consequatur\",
\"path\": \"ullam\"
}"
Received response:
Request failed with error:
Delete files and folders
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/file-manager/delete',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'modi',
'path' => 'quis',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/file-manager/delete" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"modi\",
\"path\": \"quis\"
}"
Received response:
Request failed with error:
Copy / Cut files and folders
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/file-manager/paste',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'eos',
'path' => 'accusantium',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/file-manager/paste" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"eos\",
\"path\": \"accusantium\"
}"
Received response:
Request failed with error:
Rename
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/file-manager/rename',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'eum',
'path' => 'molestias',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/file-manager/rename" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"eum\",
\"path\": \"molestias\"
}"
Received response:
Request failed with error:
Download file
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/download',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'quis',
'path' => 'et',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/download" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"quis\",
\"path\": \"et\"
}"
Received response:
Request failed with error:
Create thumbnails
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/thumbnails',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'ut',
'path' => 'in',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/thumbnails" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"ut\",
\"path\": \"in\"
}"
Received response:
Request failed with error:
Image preview
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/preview',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'accusamus',
'path' => 'doloribus',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/preview" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"accusamus\",
\"path\": \"doloribus\"
}"
Received response:
Request failed with error:
File url
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/url',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'facere',
'path' => 'numquam',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/url" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"facere\",
\"path\": \"numquam\"
}"
Received response:
Request failed with error:
Create new directory
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/file-manager/create-directory',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'commodi',
'path' => 'quis',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/file-manager/create-directory" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"commodi\",
\"path\": \"quis\"
}"
Received response:
Request failed with error:
Create new file
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/file-manager/create-file',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'labore',
'path' => 'placeat',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/file-manager/create-file" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"labore\",
\"path\": \"placeat\"
}"
Received response:
Request failed with error:
Update file
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/file-manager/update-file',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'minus',
'path' => 'quo',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/file-manager/update-file" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"minus\",
\"path\": \"quo\"
}"
Received response:
Request failed with error:
Stream file
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/stream-file',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'quo',
'path' => 'id',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/stream-file" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"quo\",
\"path\": \"id\"
}"
Received response:
Request failed with error:
Create zip archive
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/file-manager/zip',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'sint',
'path' => 'ea',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/file-manager/zip" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"sint\",
\"path\": \"ea\"
}"
Received response:
Request failed with error:
Extract zip archive
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/file-manager/unzip',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'disk' => 'culpa',
'path' => 'eaque',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/file-manager/unzip" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"disk\": \"culpa\",
\"path\": \"eaque\"
}"
Received response:
Request failed with error:
Integration with ckeditor 4
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/ckeditor',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/ckeditor" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
Integration with TinyMCE v4
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/tinymce',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/tinymce" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
Integration with TinyMCE v5
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/tinymce5',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/tinymce5" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
Integration with SummerNote
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/file-manager/summernote',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/file-manager/summernote" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
Simple integration with input field
Items
POST api/item/filter
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/api/item/filter',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'filter' => [
'page' => 7,
'perPage' => 12,
'url' => '/cloth',
'category' => 1,
'priority' => false,
'search' => 'aa',
'price' => [
0,
100,
],
'sortBy' => 'time',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/api/item/filter" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"filter\": {
\"page\": 7,
\"perPage\": 12,
\"url\": \"\\/cloth\",
\"category\": 1,
\"priority\": false,
\"search\": \"aa\",
\"price\": [
0,
100
],
\"sortBy\": \"time\"
}
}"
Received response:
Request failed with error:
GET api/item/list
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/api/item/list',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/api/item/list" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
DELETE api/item/{id}
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://{app}.admin.ux.im/api/item/1',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
"https://{app}.admin.ux.im/api/item/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
Multisend
Check template message
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/api/multisend/self',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'id' => 10,
'template' => [
'src' => '<p>hi</p>',
'settings' => [
'images' => [
[
'url' => 'placeat',
'id' => 'aut',
],
],
'button' => [
[
'link' => 'eos',
'text' => 'voluptatem',
'type' => 'webApp',
],
],
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/api/multisend/self" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"id\": 10,
\"template\": {
\"src\": \"<p>hi<\\/p>\",
\"settings\": {
\"images\": [
{
\"url\": \"placeat\",
\"id\": \"aut\"
}
],
\"button\": [
{
\"link\": \"eos\",
\"text\": \"voluptatem\",
\"type\": \"webApp\"
}
]
}
}
}"
Received response:
Request failed with error:
GET api/multisend/{id}
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/api/multisend/1',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/api/multisend/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
Options
List of all categories
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/api/options/categories',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/api/options/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
DELETE api/options/{id}
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://{app}.admin.ux.im/api/options/1',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
"https://{app}.admin.ux.im/api/options/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
Option Settings
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://{app}.admin.ux.im/api/options/settings',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
--get "https://{app}.admin.ux.im/api/options/settings" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
PUT api/options/settings
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://{app}.admin.ux.im/api/options/settings',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'id' => 11,
'option_id' => 'et',
'option' => 'molestias',
'translate' => [],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PUT \
"https://{app}.admin.ux.im/api/options/settings" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"id\": 11,
\"option_id\": \"et\",
\"option\": \"molestias\",
\"translate\": []
}"
Received response:
Request failed with error:
POST api/options/settings
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/api/options/settings',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'list' => [
[
'id' => 12,
'option_id' => 'incidunt',
'option' => 'itaque',
'translate' => [],
],
],
'remove' => [
[
'id' => 2,
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/api/options/settings" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"list\": [
{
\"id\": 12,
\"option_id\": \"incidunt\",
\"option\": \"itaque\",
\"translate\": []
}
],
\"remove\": [
{
\"id\": 2
}
]
}"
Received response:
Request failed with error:
DELETE api/options/settings/{id}
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://{app}.admin.ux.im/api/options/settings/pariatur',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
"https://{app}.admin.ux.im/api/options/settings/pariatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS"
Received response:
Request failed with error:
Orders
POST api/order/filter
Example request:
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://{app}.admin.ux.im/api/order/filter',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-TOKEN' => '6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS',
],
'json' => [
'id' => 13,
'filter' => [
'page' => 3,
'perPage' => 3,
'search' => '15',
'status' => 'new',
'pay_status' => [
'neque',
],
'price' => [
0,
100,
],
'created_at' => [
0,
1880001105,
],
'sortBy' => 'time',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
"https://{app}.admin.ux.im/api/order/filter" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-TOKEN: 6I92OcFRFBTEGx3INZs8pqk6LA0FXY3pdVZSsT2mS9oYqxAZjFaGBn998aALnufS" \
--data "{
\"id\": 13,
\"filter\": {
\"page\": 3,
\"perPage\": 3,
\"search\": \"15\",
\"status\": \"new\",
\"pay_status\": [
\"neque\"
],
\"price\": [
0,
100
],
\"created_at\": [
0,
1880001105
],
\"sortBy\": \"time\"
}
}"
Received response:
Request failed with error: