Versions in this module Expand all Collapse all v1 v1.0.0 Jul 31, 2018 Changes in this version + const DefaultHeaderTokenKey + func CheckResponse(r *http.Response) error + func NewTokenAuthClient(config *Config) *http.Client + type AboutMe struct + Attributes *UserAttributes + ID string + Type string + func (a *AboutMe) String() string + type AboutMeResponse struct + AboutMe *AboutMe + type Avatar struct + URL string + type Client struct + BaseURL *url.URL + EventTypes EventTypesService + UserAgent string + Users UsersService + Webhooks WebhooksService + func NewClient(httpClient *http.Client) *Client + func (c *Client) Delete(urlStr string) (*http.Request, error) + func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*Response, error) + func (c *Client) Echo(ctx context.Context) (*Echo, *Response, error) + func (c *Client) Get(urlStr string) (*http.Request, error) + func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + func (c *Client) Post(urlStr string, body interface{}) (*http.Request, error) + func (c *Client) Put(urlStr string, body interface{}) (*http.Request, error) + func (c *Client) SetBaseURL(bUrl string) error + func (c *Client) SetUserAgent(ua string) + type Config struct + ApiKey string + HeaderKey string + type Data struct + ID string + Type string + type Echo struct + Email string + func (r *Echo) String() string + type ErrorResponse struct + Message string + RequestID string + Response *http.Response + func (r *ErrorResponse) Error() string + type EventHookType string + const InviteeCancelledHookType + const InviteeCreatedHookType + type EventType struct + Attributes *EventTypeAttributes + ID string + Relationships *Relationships + Type string + func (et *EventType) String() string + type EventTypeAttributes struct + Active bool + Color string + CreatedAt string + Description string + Duration int64 + Name string + Slug string + URL string + UpdatedAt string + type EventTypesOpts struct + Include IncludeType + type EventTypesService apiService + func (s *EventTypesService) List(ctx context.Context, opt *EventTypesOpts) ([]*EventType, *Response, error) + type IncludeType string + const IncludeTypeOwner + type Owner struct + Data Data + type Relationships struct + Owner Owner + type Response struct + type Transport struct + Base http.RoundTripper + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) + type UserAttributes struct + Avatar *Avatar + CreatedAt string + Email string + Name string + Slug string + Timezone string + URL string + UpdatedAt string + type UsersService apiService + func (s *UsersService) AboutMe(ctx context.Context) (*AboutMe, *Response, error) + type Webhook struct + Attributes *WebhookAttributes + ID int64 + Type string + type WebhookAttributes struct + CreatedAt string + Events []EventHookType + State string + URL string + type WebhooksOpts struct + Events []EventHookType + Url string + type WebhooksService apiService + func (s *WebhooksService) Create(ctx context.Context, opt *WebhooksOpts) (*Webhook, *Response, error) + func (s *WebhooksService) Delete(ctx context.Context, id int64) (*Response, error) + func (s *WebhooksService) GetByID(ctx context.Context, id int64) (*Webhook, *Response, error) + func (s *WebhooksService) List(ctx context.Context) ([]*Webhook, *Response, error)