Hi team,I am trying to create new ticket with api interface as documented in the example. I tried all teh three possible combination along with local ip, hosted server ip and with my isp internet connected ip. I also tried with two hosting servers.If Any body successfully integrated with the APi kindly help me. I created the API Keys in the admin control panelPHP Version 5.4.35MySQL Version 5.5.42-cllArchitecture x86_64Operating System linuxShared IP Address 116.251.223.182Path to Perl /usr/bin/perlPerl Version 5.10.1public_html/support/api/apitest.php-----------------------------------------#!/usr/bin/php -q<?php## Configuration: Enter the url and key. That is it.# url => URL to api/task/cron e.g # http://yourdomain.com/support/api/tickets.json# key => API's Key (see admin panel on how to generate a key)#$config = array( 'url'=>'http://www.srfurnituregroup.com/support/api/tickets.json', 'key'=>'CC1766F755CC9452D77985102AA914B6' );# Fill in the data for the new ticket, this will likely come from $_POST.$data = array( 'name' => 'John Doe', 'email' => 'mailbox@host.com', 'subject' => 'Test API message', 'message' => 'This is a test of the osTicket API', 'ip' => $_SERVER, #'attachments' => array(),);/* * Add in attachments here if necessary$data =array('filename.pdf' => 'data/png;base64,' . base64_encode(file_get_contents('/path/to/filename.pdf'))); */#pre-checksfunction_exists('curl_version') or die('CURL support required');function_exists('json_encode') or die('JSON support required');#set timeoutset_time_limit(30);#curl post$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $config);curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));curl_setopt($ch, CURLOPT_USERAGENT, 'osTicket API Client v1.7');curl_setopt($ch, CURLOPT_HEADER, FALSE);curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Expect:', 'X-API-Key: '.$config));curl_setopt($ch, CURLOPT_FOLLOWLOCATION, FALSE);curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);$result=curl_exec($ch);$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);curl_close($ch);if ($code != 201) die($_SERVER.'Unable to create ticket: '.$result);$ticket_id = (int) $result;# Continue onward here if necessary. $ticket_id has the ID number of the# newly-created ticket?>public_html/support/api/tickets.json---------------------------------------------------{ "alert": true, "autorespond": true, "source": "API", "name": "Angry User", "email": "api@osticket.com", "phone": "3185558634X123", "subject": "Testing API", "ip": "117.221.225.67", "message": "MESSAGE HERE" }--------------------------------------------------------------http://www.srfurnituregroup.com/support/api/apitest.php ; -----The output screen looks like this----------117.221.225.67Unable to create ticket: { "alert": true, "autorespond": true, "source": "API", "name": "Angry User", "email": "api@osticket.com", "phone": "3185558634X123", "subject": "Testing API", "ip": "117.221.225.67", "message": "MESSAGE HERE" }