Skip to content

stackwebservices/ticket_api_php_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ticket_api_client

API PHP client for http://ticket.stackwebservices.com

Request URL

http://ticket.stackwebservices.com/api.php

How to use

$api = array();
$api['email'] = 'my@email.com';
$api['secret'] = '1234567890';
$api['organisation_id'] = 1;

$ticket = new sws_ticket_api_client($api['email'], $api['secret'], $api['organisation_id']);

Create a new ticket

$email = 'client@email.com';
$title = 'bug 1';
$message = 'my imac has just crashed and when Iturn it on again all that';

$new_ticket = $ticket->ticket_add($email, $title, $message);

Check ticket status

$email = 'client@email.com';
$ticket_id = 1;

$status = $ticket->ticket_details_check($email, $ticket_id);

Add comment

$email = 'client@email.com';
$ticket_id = 1;
$comment = 'client comment';

$cc = $ticket->comment_add($email, $ticket_id, $comment);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages