- Edited
Has anyone been able to successfully use the API or had similar problems?
Has anyone been able to successfully use the API or had similar problems?
I have been able to successfully do the API integration of OSTicket with Yii.If anyone is interested I will prepare a solution for you.
Geo99M6Z, I've come to a dead end so I'd certainly appreciate a solution if you could please.
ntozier, does this give any clues... the domain of my ost is support.mydomain.com (mydomain of course replacing my actual domain)so in the code I use http://support.mydomain.com/api/tickets.jsonif I put that address in a browser it responds with "URL not supported" If I use http://mydomain.com/api/tickets.json it goes to my domain web site (tho page not found)So is this an issue because its a subdomain?
infotec, i have the same problem like you now.i use 1.9.8.1followed all advice given above, API key is generated using the correct IP address.browser (IE/Chrome) result is always "Unable to create ticket: Valid API key required"any solution to share please?
infotec, i'm NOT using subdomain, i use v1.9.8.1 in a sub-folder.I tried both:api/tickets.jsonapi/http.php/tickets.jsonI still get browser error "URL not supported". So i don't think subdomain is the issue.my browser (IE/Chrome) result is always "Unable to create ticket: Valid API key required"
If you are getting "Unable to create ticket: Valid API key required" then the system doesn't appear to like the API key that you are using.
i followed the steps to create API Keys under Admin > Manage > API Keysi've tried create 2 different API keys but still the script failed.i've also added below 3 lines to check. all values are correct and OK.echo $_SERVER . "<br>";echo $config . "<br>";echo $config . "<br>";i have no idea why it fails in our installation.
I dont know, but this thread is for a different version then you are running so if you are having an issue you really should have started your own thread instead of zombie-ing one from 2014.Whats the IP of where the request is being originated from?Is that the IP that you used to make your key?
oh noted.yes. the IP address used to create API Keys is the IP address of my laptop broadband connection which initiate the HTTP request.They are same as $_SERVER
Did you ever solve this? If so, how?
Anyone solve this ?
Good Morning,I'm also trying to use api.You could solve the problems reported in the forum?Thank you
zombie thread from 2014.Killing it with a head shot.(closing thread)If you have an issue please start your own thread.