All URIs are relative to https://zernio.com/api, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createQueueSlot() | POST /v1/queue/slots | Create schedule |
| deleteQueueSlot() | DELETE /v1/queue/slots | Delete schedule |
| getNextQueueSlot() | GET /v1/queue/next-slot | Get next available slot |
| listQueueSlots() | GET /v1/queue/slots | List schedules |
| previewQueue() | GET /v1/queue/preview | Preview upcoming slots |
| updateQueueSlot() | PUT /v1/queue/slots | Update schedule |
createQueueSlot($create_queue_slot_request): \Zernio\Model\CreateQueueSlot201ResponseCreate schedule
Create an additional queue for a profile. The first queue created becomes the default. Subsequent queues are non-default unless explicitly set.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Zernio\Api\QueueApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$create_queue_slot_request = {"profileId":"64f0a1b2c3d4e5f6a7b8c9d0","name":"Evening Posts","timezone":"America/New_York","slots":[{"dayOfWeek":1,"time":"18:00"},{"dayOfWeek":3,"time":"18:00"},{"dayOfWeek":5,"time":"18:00"}],"active":true}; // \Zernio\Model\CreateQueueSlotRequest
try {
$result = $apiInstance->createQueueSlot($create_queue_slot_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QueueApi->createQueueSlot: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| create_queue_slot_request | \Zernio\Model\CreateQueueSlotRequest |
\Zernio\Model\CreateQueueSlot201Response
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteQueueSlot($profile_id, $queue_id): \Zernio\Model\DeleteQueueSlot200ResponseDelete schedule
Delete a queue from a profile. Requires queueId to specify which queue to delete. If deleting the default queue, another queue will be promoted to default.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Zernio\Api\QueueApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$profile_id = 'profile_id_example'; // string
$queue_id = 'queue_id_example'; // string | Queue ID to delete
try {
$result = $apiInstance->deleteQueueSlot($profile_id, $queue_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QueueApi->deleteQueueSlot: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| profile_id | string | ||
| queue_id | string | Queue ID to delete |
\Zernio\Model\DeleteQueueSlot200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNextQueueSlot($profile_id, $queue_id): \Zernio\Model\GetNextQueueSlot200ResponseGet next available slot
Returns the next available queue slot for preview purposes. To create a queue post, use POST /v1/posts with queuedFromProfile instead of scheduledFor.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Zernio\Api\QueueApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$profile_id = 'profile_id_example'; // string
$queue_id = 'queue_id_example'; // string | Specific queue ID (optional, defaults to profile's default queue)
try {
$result = $apiInstance->getNextQueueSlot($profile_id, $queue_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QueueApi->getNextQueueSlot: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| profile_id | string | ||
| queue_id | string | Specific queue ID (optional, defaults to profile's default queue) | [optional] |
\Zernio\Model\GetNextQueueSlot200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listQueueSlots($profile_id, $queue_id, $all): \Zernio\Model\ListQueueSlots200ResponseList schedules
Returns queue schedules for a profile. Use all=true for all queues, or queueId for a specific one. Defaults to the default queue.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Zernio\Api\QueueApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$profile_id = 'profile_id_example'; // string | Profile ID to get queues for
$queue_id = 'queue_id_example'; // string | Specific queue ID to retrieve (optional)
$all = 'all_example'; // string | Set to 'true' to list all queues for the profile
try {
$result = $apiInstance->listQueueSlots($profile_id, $queue_id, $all);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QueueApi->listQueueSlots: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| profile_id | string | Profile ID to get queues for | |
| queue_id | string | Specific queue ID to retrieve (optional) | [optional] |
| all | string | Set to 'true' to list all queues for the profile | [optional] |
\Zernio\Model\ListQueueSlots200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
previewQueue($profile_id, $queue_id, $count): \Zernio\Model\PreviewQueue200ResponsePreview upcoming slots
Returns the next N upcoming queue slot times for a profile as ISO datetime strings.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Zernio\Api\QueueApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$profile_id = 'profile_id_example'; // string
$queue_id = 'queue_id_example'; // string | Filter by specific queue ID. Omit to use the default queue.
$count = 20; // int
try {
$result = $apiInstance->previewQueue($profile_id, $queue_id, $count);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QueueApi->previewQueue: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| profile_id | string | ||
| queue_id | string | Filter by specific queue ID. Omit to use the default queue. | [optional] |
| count | int | [optional] [default to 20] |
\Zernio\Model\PreviewQueue200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateQueueSlot($update_queue_slot_request): \Zernio\Model\UpdateQueueSlot200ResponseUpdate schedule
Create a new queue or update an existing one. Without queueId, creates/updates the default queue. With queueId, updates a specific queue. With setAsDefault=true, makes this queue the default for the profile.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Zernio\Api\QueueApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$update_queue_slot_request = {"profileId":"64f0a1b2c3d4e5f6a7b8c9d0","queueId":"64f0a1b2c3d4e5f6a7b8c9d1","name":"Morning Posts","timezone":"America/New_York","slots":[{"dayOfWeek":1,"time":"09:00"},{"dayOfWeek":3,"time":"09:00"},{"dayOfWeek":5,"time":"10:00"}],"active":true,"setAsDefault":false}; // \Zernio\Model\UpdateQueueSlotRequest
try {
$result = $apiInstance->updateQueueSlot($update_queue_slot_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QueueApi->updateQueueSlot: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| update_queue_slot_request | \Zernio\Model\UpdateQueueSlotRequest |
\Zernio\Model\UpdateQueueSlot200Response
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]