Forum Discussion
- Hitesh VardeNew MemberHi Stewart,
Thanks for your prompt reply. Very much helpful !
I tried your code and got success with connecting the GTA.
Have you ever tried posting anything using this API?
My requirement is to create / update "company" using GTA API.
Thanks,
Hitesh - Stewart11New MemberHi Hitesh,
I haven't gone back to revisit but I would suggest that you visit the link that Mike supplied. When I checked last night, it looks like it has been updated a lot and is a lot more detailed from when I saw it last. Check page 16 of the PDF:
Create Incident (POST)
This API call creates an incident and returns it. HTTP-, API- or Service Desk-specific errors will be returned otherwise.
I might have to go back and re-visit myself now :)
Stewy - Mike SudingActive ContributorI am getting the ASP.NET version of this web form done. I will post some news next week hopefully.
- Hitesh VardeNew MemberHi Mike,
It would be greatly appreciated.
Thanks,
Hitesh - Mike SudingActive ContributorHere's the ASP equivalent if you need it:
Download these files and put them on your Windows IIS web server
https://citrix.sharefile.com/d/s1ae52...
You can see/test it on my web server:
http://wowie.us/ASP-ticket
Note: for both ASP and PHP, you need to know your API key and your "serviceID". You can get YOUR serviceIDs by using my handy PHP page (link at the bottom of my sample page).
DISCLAIMER: This is sample code I am providing to the community so normal Citrix tech support is not available. I will try my best to support it. - Hitesh VardeNew MemberHi Mike,
I tried various options to POST / PUT Company using service desk API, but still unable to perform this.
Do we have any news on this? Please help me with some hint / pointer to get it running.
Thanks,
Hitesh - Stewart11New MemberHi Mike,
Thanks for sharing the code. It works fine when using the enclosed API, however when I add my (or company) API, it fails to work. When it tries to populate the DDLs, the code is returning back an error being NULL. I suspect it is to do with the "service_id" that is specified within the create-ticket.aspx.cs file. How is that number populated as there is no mention of getting that information within the API document except stating that it is a mandatory requirement on page 164 (160 on footer of page)
string type_url = "https://deskapi.gotoassist.com/v1/ser... + service_id + ".json";
Looking forward to your reply...
Stewy - Mike SudingActive ContributorLook at the bottom of the example page and click on "handy tool..." To find YOUR service ID
- Mike SudingActive ContributorHere's one of the simplest commands I use to test the API. As you can see, it uses the freeware CURL.exe (link in my main post). I hope this helps.
curl -k -u x:459c4da6401d39bbf9327ee17175e25c -H "Content-Type: application/json" https://deskapi.gotoassist.com/v1/services.json
- Stewart11New MemberCheers. Thanks for that...