Documentation ¶
Index ¶
- type APIClient
- func (c *APIClient) CallAPI(path string, method string, postBody interface{}, ...) (*resty.Response, error)
- func (c *APIClient) ParameterToString(obj interface{}, collectionFormat string) string
- func (c *APIClient) SelectHeaderAccept(accepts []string) string
- func (c *APIClient) SelectHeaderContentType(contentTypes []string) string
- type APIResponse
- type Configuration
- type Contact
- type ContactApi
- type ContactRequest
- type ContactResponse
- type TrackRequest
- type TrackResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func (*APIClient) ParameterToString ¶
func (*APIClient) SelectHeaderAccept ¶
func (*APIClient) SelectHeaderContentType ¶
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the swagger operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type Configuration ¶
type Configuration struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` APIKeyPrefix map[string]string `json:"APIKeyPrefix,omitempty"` APIKey map[string]string `json:"APIKey,omitempty"` Debug bool `json:"debug,omitempty"` DebugFile string `json:"debugFile,omitempty"` OAuthToken string `json:"oAuthToken,omitempty"` BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` AccessToken string `json:"accessToken,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` APIClient *APIClient Transport *http.Transport Timeout *time.Duration `json:"timeout,omitempty"` }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
func (*Configuration) GetAPIKeyWithPrefix ¶
func (c *Configuration) GetAPIKeyWithPrefix(APIKeyIdentifier string) string
func (*Configuration) GetBasicAuthEncodedString ¶
func (c *Configuration) GetBasicAuthEncodedString() string
type Contact ¶
type Contact struct { EncryptedTeamId string `json:"encryptedTeamId,omitempty"` EncryptedId string `json:"encryptedId,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Email string `json:"email,omitempty"` Company string `json:"company,omitempty"` Birthday string `json:"birthday,omitempty"` Tags []string `json:"tags,omitempty"` CustomFields map[string]string `json:"customFields,omitempty"` }
type ContactApi ¶
type ContactApi struct {
Configuration *Configuration
}
func NewContactApi ¶
func NewContactApi() *ContactApi
func NewContactApiWithBasePath ¶
func NewContactApiWithBasePath(basePath string) *ContactApi
func (ContactApi) ContactIdentifyPost ¶
func (a ContactApi) ContactIdentifyPost(apiKey string, teamId string, contactDetails ContactRequest) (*ContactResponse, *APIResponse, error)
*
- Identify a contact as user * *
- @param apiKey
- @param teamId
- @param contactDetails Contact details
- @return *ContactResponse
func (ContactApi) ContactTrackPost ¶
func (a ContactApi) ContactTrackPost(apiKey string, teamId string, email string, trackDetails TrackRequest) (*TrackResponse, *APIResponse, error)
*
- Add tracking info using tags to a contact * *
- @param apiKey
- @param teamId
- @param email
- @param trackDetails Track Details
- @return *TrackResponse
type ContactRequest ¶
type ContactRequest struct { FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Email string `json:"email,omitempty"` NewEmail string `json:"newEmail,omitempty"` Company string `json:"company,omitempty"` Birthday string `json:"birthday,omitempty"` Tags []string `json:"tags,omitempty"` CustomFields map[string]string `json:"customFields,omitempty"` }
type ContactResponse ¶
type TrackRequest ¶
type TrackResponse ¶
Click to show internal directories.
Click to hide internal directories.