POSTS
PORTFOLIO
SEARCH
SHOP
  • Your Cart Is Empty!
Your address will show here +12 34 56 78
API command for developers
Looking for telecom solutions without needing a developer? Our user portal has you covered! 
  • Text Hover
Support Tickets with the API
With the API it is possible to view recent support tickets, read those tickets based off of their ID, and interact with new tickets created using the API.
The command supportLastTickets() will list the last twenty tickets.
The supportReadTicket() function can be used in tandem with this command.
The function takes in one parameter, the ID, which is given in the list of tickets.

EXAMPLE:
<?php
$api = new QBapi();
$result = $api-> supportReadTicket($api-> supportLastTicketsList()-> tickets[0]->ticket_id[0]);
echo '<pre>';
print_r($result);
?>
You can create a ticket, post to a ticket, and close a ticket with the supportCreatePost() function. It takes five parameters, they must all have a value each method call, if they are not necessary they will be ignored:
    message - the message you wish to send to support
    subject - the subject line, when you post to an existing ticket this is ignored
    ticket_ID - the ticket post to add to. You will be given an ID when you create a ticket under ticket_id[0], 0 for a new ticket
    close ticket - a "yes" or "no" to close the ticket
    file - create an array and place the files full path as a string in it if you wish to upload files.
EXAMPLE:
<?php
$api = new QBapi();
$files = array("/var/www/html/problem.png");
$result = $api-> supportCreatePost("This is a support ticket, please assist me!","subject line","0","no",$files);
echo '<pre>';
print_r($result);
?>