Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnvZendeskUsername = "ZENDESK_USERNAME" EnvZendeskPassword = "ZENDESK_PASSWORD" EnvZendeskSubdomain = "ZENDESK_SUBDOMAIN" )
Functions ¶
func NewClientPassword ¶
NewClientPassword creates a new http.Client using basic authentication.
func NewClientToken ¶
NewClientToken creates a new http.Client using the Zendesk API token as specified here: https://developer.zendesk.com/rest_api/docs/core/introduction
Types ¶
type ClientUtil ¶
type ClientUtil struct { Client *http.Client `json:"-"` Subdomain string `json:"subdomain,omitempty"` MeUser Me `json:"user,omitempty"` }
ClientUtil is a client library to retrieve user info from the Facebook API.
func NewClientUtil ¶
func NewClientUtil(client *http.Client, subdomain string) ClientUtil
func (*ClientUtil) GetSCIMUser ¶
func (cu *ClientUtil) GetSCIMUser() (scim.User, error)
func (*ClientUtil) GetUserinfo ¶
func (cu *ClientUtil) GetUserinfo() (*Me, error)
func (*ClientUtil) SetClient ¶
func (cu *ClientUtil) SetClient(client *http.Client)
type Me ¶
type MeResponse ¶
type MeResponse struct {
User Me `json:"user,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.