Tickets
Create tickets
Basic ticket
<?php
use Deskpro\API\DeskproClient;
use Deskpro\API\Exception\APIException;
include (__DIR__ . '/vendor/autoload.php');
$client = new DeskproClient('http://deskpro.company.com');
$client->setAuthKey(1, 'dev-admin-code');
try {
$payload = [
'agent' => 1,
'person' => 'joe@deskprodemo.com',
'subject' => 'Test ticket',
'message' => [
'message' => 'Test message'
]
];
$resp = $client->post('/tickets', $payload);
print_r($resp->getData());
print_r($resp->getMeta());
} catch (APIException $e) {
echo $e->getMessage();
}Checking if the user exists
Ticket with custom fields
Ticket with labels
Ticket with CC's
Ticket with attachments
Get Tickets
Tickets from a user
Update a ticket
Modify a ticket
Add a reply to a ticket
Last updated