Пример #1
0
func main() {

	auth := zego.Auth{"*****@*****.**", "Password", "example.zendesk.com"}
	// auth := zego.Auth{"[email protected]/token", "Token", "example.zendesk.com"}

	response, _ = auth.ListOrganizations()
	orgs := &zego.OrganizationArray{}
	json.Unmarshal([]byte(response.Raw), orgs)
	for _, o := range orgs.Organizations {
		log.Print(o.Name)
	}

}