I am implementing osTicket API for creating tickets. I am facing some problems regarding this. I have created the API key firstly and have provided the IP from where the page will call API and by default the test page is located inside the osTicket website so the IP will be the same.Secondly, I created a test page inside osTicket website which will call the API. The code which is inserted into the test.php is taken from: http://forum.osticket.com/d/discussion//valid-api-key-required-trying-to-create-a-ticket-via-apiLastly, The repose which is echoed says:"HTTP/1.1 200 OK

Date: Tue, 03 Jun 2014 05 GMT

Server: Apache

Last-Modified: Mon, 02 Jun 2014 09 GMT

Accept-Ranges: bytes

Content-Length: 0

Content-Type: application/json

Array

(

=> HTTP/1.1 200 OK

=> 200

)

1"---------------------------------------------------------------------------------------------------------------------------------So now the problem is, I am not getting any mail reflected in my osTicket -> Open Tickets.1- Which IP should I provide? The server's IP OR osTicket's website IP?2- In the code there is a url which is called: http://www.mydomain.com/tickets/api/tickets.json - but the file is empty. Is this the problem? If it is; than where can I get the code?Thanks in advance.

Found out myself... The two parameters required i.e.1- The IP which is required while we add API - The website which will be sending the request is saved i.e. Lets suppose there is a website 'a' (www.osticket.com) and site 'b' (www.abc.com). Definitely, the api page is at site a and website b will be requesting osticket to insert a ticket. The site 'b' IP address will be inserted into site 'a' API.2- The request URL. If you browse through your osticket folders and goto api folder; you will find that there is no file named tickets.json. Rather there is a file named http.php which will handle api requests. rather than creating a request on 'http://yourdomain.com/support/api/tickets.json' create the request on 'http://www.24activ.com/tickets/api/http.php/tickets.json'-------------------------------------------------------------------------------------------------Once these are understood. Your are set to go. Just use the code used here: http://forum.osticket.com/d/discussion//php-form-example-to-hit-apiBest of luck.

I imagine that this:http://tmib.net/using-osticket-1812-apimight have saved you some time. :) 

i am trying to convert every email coming to support@xxxxxxxxx.com to a ticket. please what are the steps?

@ibrahim2032Please see and read http://osticket.com/wiki/Email_settings#POP3.2FIMAP_PollingYour request has nothing to do with the topic of this thread.  Closing thread.

Write a Reply...