Zendesk API client library for Go

Zendesk API client library for Go

package main import ( "context" "github.com/nukosuke/go-zendesk/zendesk" ) func main () { // You can set custom *http.Client here client , _ := zendesk . NewClient ( nil ) // example.zendesk.com client . SetSubdomain ( "example" ) // Authenticate with API token client . SetCredential ( zendesk . NewAPITokenCredential ( "john.doe@example.com" , "apitoken" )) // Authenticate with agent password client . SetCredential ( zendesk . NewBasicAuthCredential ( "john.doe@example.com" , "password" )) // Create resource client . CreateGroup ( context . Background (), zendesk. Group { Name : "support team" , }) }

Comentarios

Entradas populares de este blog

An OpenAPI demo specification to integrate Qualtrics XM into Microsoft Power Platform

Write your API docs in Markdown and get them converted into pretty HTML

Official Notion JavaScript Client