Forum Discussion
- 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,
It would be greatly appreciated.
Thanks,
Hitesh - Mike SudingActive ContributorI am getting the ASP.NET version of this web form done. I will post some news next week hopefully.
- 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 - 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 - 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 - Mike SudingActive ContributorThe API docs are here:
http://support.citrixonline.com/en_US... - Stewart11New MemberHi Hitesh,
I was playing around with the ASP.NET for a while but found it very clunky and slow but that might have been the way I was using it...
What I was trying to do was create a report (in GTA) which had the required details in it and then show it up in a dashboard on our service desk wall with other dashboards (reports)...
I created a "function" to count the number of open tickets within a department.
Public Shared Function GetCountFromReport(ByVal reportnumber As String) As String
' Build URL with report number at the end
Dim wURL = "https://deskapi.gotoassist.com/v1/inc...=" & reportnumber
Dim mRequest As HttpWebRequest = WebRequest.Create(wURL)
mRequest.ContentType = "application/json"
'API code. The "x:" must before the API code.
Dim usernamePassword As String = "x:APICODE"
Dim enc As New UTF8Encoding()
mRequest.Headers.Add("Authorization", Convert.ToBase64String(enc.GetBytes(usernamePassword)))
Dim wResponse As HttpWebResponse
Try
wResponse = mRequest.GetResponse()
Dim sResponse As String = ""
Using srRead As New StreamReader(wResponse.GetResponseStream())
sResponse = srRead.ReadToEnd()
End Using
Dim x() As String = Split(sResponse, ",")
Dim y() As String = Split(x(2), ":")
Return y(2)
Catch ex As Exception
Return ex.Message.ToString
End Try
End Function
Where it shows APICODE, replace with your API as found in the GTA.
I would call that function via:
Dim AugTC As Integer = Convert.ToInt32(clReport.GetCountFromReport(REPORTNUMBER))
Replace REPORTNUMBER with the report number of GTA.
The biggest problem for me was getting the connection to GTA working. Once I had that sorted then the API's as listed in Beetil started to make sense. www.beetil.com/api but it looks like the site is shutdown.
It is written in VB.net but should be easy to translate to C#.
Hope that helps...
Stewy - Hitesh VardeNew MemberHello,
I am looking for integrating GoToAssist API using ASP.NET, does anyone have any idea that can help me for doing it?
Any code or samples ??
Your early response would be highly appreciated.
Thanks,
Hitesh - Miles MaddoxNew MemberI had been looking for the API docs for some time as well. Not sure how long it's been posted, but there's a PDF from Citrix here:
https://support.citrixonline.com/en_US/GoToAssistServiceDesk/downloaddocument/G2ASDD00003
edit: updating link to current doc