Versions in this module Expand all Collapse all v1 v1.0.0 Jul 31, 2018 Changes in this version + func MultiValuesString(s ...string) string + type Account struct + Currency string + CurrentUser int + Embedded struct{ ... } + ID int + Language string + Name string + Subdomain string + Timezone string + TimezoneOffset string + type AccountCustomField struct + Enums map[string]string + FieldType int + ID int + IsDeletable bool + IsEditable bool + IsMultiple bool + IsRequired bool + IsSystem bool + IsVisible bool + Name string + Sort int + type AuthResponse struct + Response struct{ ... } + type CSValue struct + Enum string + Subtype string + Value string + type Client struct + Timezone string + func NewClient(accountWebAddress string, rateLimiter RateLimiter) (*Client, error) + func (c *Client) AddCompany(comp Company) (int, error) + func (c *Client) AddContact(contact Contact) (int, error) + func (c *Client) AddNote(note Note) (int, error) + func (c *Client) AddTask(task Task) (int, error) + func (c *Client) Authorize(userLogin, userHash string) (*AuthResponse, error) + func (c *Client) DoGet(url string, result interface{}) error + func (c *Client) DoPost(url string, data interface{}) (*http.Response, error) + func (c *Client) DoPostWithReturnID(url string, data interface{}) (int, error) + func (c *Client) GetAccount(freeUsers bool, with []string) (Account, error) + func (c *Client) SetURL(url string, addValues map[string]string) string + type Company struct + ContactsID string + CreatedAt int + CreatedBy int + CustomFields []CustomField + CustomersID string + LeadsID string + Name string + ResponsibleUserID int + Tags string + UpdatedAt int + type CompanyAction struct + Add []Company + type Contact struct + CompanyID string + CompanyName string + CreatedAt int + CreatedBy int + CustomFields []CustomField + CustomersID string + LeadsID string + Name string + ResponsibleUserID int + Tags string + UpdatedAt int + type ContactAction struct + Add []Contact + type CustomField struct + ID int + Values []CSValue + type Note struct + CreatedAt int + ElementID int + ElementType int + NoteType int + ResponsibleUserID int + Text string + UpdatedAt int + type NoteAction struct + Add []Note + type RateLimiter interface + WaitForRequest func() + type Task struct + CompleteTillAt int + CreatedAt int + CreatedBy int + ElementID int + ElementType int + IsCompleted bool + ResponsibleUserID int + TaskType int + Text string + UpdatedAt int + type TaskAction struct + Add []Task + type User struct + GroupID int + ID int + IsActive bool + IsAdmin bool + IsFree bool + Language string + LastName string + Login string + Name string + Rights map[string]string Other modules containing this package github.com/alehano/amo/v2