You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to get the API to work by using email&password authentication. I am trying to switch to using a token but my requests fail (401) Unauthorized.Error content: {"error":"invalid_token"
Am I missing something?
Dim requester As New ZendeskApi_v2.Models.Tickets.Requester
requester.Email = "john@doe.com"
Dim zencomment As New ZendeskApi_v2.Models.Tickets.Comment
zencomment.Body = "test comment"
Dim ticket As New ZendeskApi_v2.Models.Tickets.Ticket
ticket.Requester = requester
ticket.Comment = zencomment
ticket.Subject = "test subject"
Dim zendesk As New ZendeskApi("https://help___.zendesk.com/api/v2", "TOKEN_STRING_HERE")
zendesk.Tickets.CreateTicket(ticket)
The text was updated successfully, but these errors were encountered:
Your example above will try to use an OAuthToken and I think you're trying to use an ApiToken. Try the following: Dim zendesk As New ZendeskApi("https://help___.zendesk.com/api/v2", "USERNAME", Nothing, "APITOKEN_STRING_HERE", Nothing)
Hello,
I managed to get the API to work by using email&password authentication. I am trying to switch to using a token but my requests fail (401) Unauthorized.Error content: {"error":"invalid_token"
Am I missing something?
Dim requester As New ZendeskApi_v2.Models.Tickets.Requester
requester.Email = "john@doe.com"
The text was updated successfully, but these errors were encountered: