intercom-go: github.com/intercom/intercom-go/interfaces Index | Files

package interfaces

import "github.com/intercom/intercom-go/interfaces"

Index

Package Files

http_client.go http_error.go

type HTTPClient Uses

type HTTPClient interface {
    Get(string, interface{}) ([]byte, error)
    Post(string, interface{}) ([]byte, error)
    Patch(string, interface{}) ([]byte, error)
    Delete(string, interface{}) ([]byte, error)
}

type HTTPError Uses

type HTTPError struct {
    StatusCode int
    Code       string `json:"code"`
    Message    string `json:"message"`
}

func NewUnknownHTTPError Uses

func NewUnknownHTTPError() HTTPError

func (HTTPError) Error Uses

func (e HTTPError) Error() string

func (HTTPError) GetCode Uses

func (e HTTPError) GetCode() string

func (HTTPError) GetMessage Uses

func (e HTTPError) GetMessage() string

func (HTTPError) GetStatusCode Uses

func (e HTTPError) GetStatusCode() int

type HTTPErrorList Uses

type HTTPErrorList struct {
    Type   string      `json:"type"`
    Errors []HTTPError `json:"errors"`
}

type IntercomError Uses

type IntercomError interface {
    Error() string
    GetStatusCode() int
    GetCode() string
    GetMessage() string
}

type IntercomHTTPClient Uses

type IntercomHTTPClient struct {
    *http.Client
    BaseURI       *string
    AppID         string
    APIKey        string
    ClientVersion *string
    Debug         *bool
}

func NewIntercomHTTPClient Uses

func NewIntercomHTTPClient(appID, apiKey string, baseURI, clientVersion *string, debug *bool) IntercomHTTPClient

func (IntercomHTTPClient) Delete Uses

func (c IntercomHTTPClient) Delete(url string, queryParams interface{}) ([]byte, error)

func (IntercomHTTPClient) Get Uses

func (c IntercomHTTPClient) Get(url string, queryParams interface{}) ([]byte, error)

func (IntercomHTTPClient) Patch Uses

func (c IntercomHTTPClient) Patch(url string, body interface{}) ([]byte, error)

func (IntercomHTTPClient) Post Uses

func (c IntercomHTTPClient) Post(url string, body interface{}) ([]byte, error)

func (IntercomHTTPClient) UserAgentHeader Uses

func (c IntercomHTTPClient) UserAgentHeader() string

Package interfaces imports 7 packages (graph) and is imported by 4 packages. Updated 2016-09-10. Refresh now. Tools for package owners.