Documentation
¶
Index ¶
- type A2PCampaignAssociation
- type A2PCampaignAssociationResponse
- type A2PCampaignAssociationsQueries
- type A2PCampaignAssociationsResponse
- type A2PCampaignAssociationsService
- func (service *A2PCampaignAssociationsService) Create(a2pCampaignAssociation *CreateUpdateA2PCampaignAssociation) (*A2PCampaignAssociationResponse, *Response, error)
- func (service *A2PCampaignAssociationsService) Delete(a2pCampaignAssociationID int) (*Response, error)
- func (service *A2PCampaignAssociationsService) List(queryParams *ListA2PCampaignAssociationsQueryParams) (*A2PCampaignAssociationsResponse, *Response, error)
- func (service *A2PCampaignAssociationsService) Query() *A2PCampaignAssociationsQueries
- func (service *A2PCampaignAssociationsService) Update(a2pCampaignAssociation *CreateUpdateA2PCampaignAssociation) (*A2PCampaignAssociationResponse, *Response, error)
- type ApiType
- type Call
- type CallActionBy
- type CallComment
- type CallIVROption
- type CallInsightCard
- type CallInsightCardContents
- type CallParticipant
- type CallQueries
- type CallResponse
- type CallTag
- type CallTags
- type CallTransfer
- type CallsResponse
- type CallsService
- func (service *CallsService) AddInsightCard(callID int, insightCard *CallInsightCard) (*Response, error)
- func (service *CallsService) Archive(callID int) (*CallResponse, *Response, error)
- func (service *CallsService) Comment(callID int, comment string) (*Response, error)
- func (service *CallsService) DeleteRecording(callID int) (*Response, error)
- func (service *CallsService) DeleteVoicemail(callID int) (*Response, error)
- func (service *CallsService) Get(callID int) (*CallResponse, *Response, error)
- func (service *CallsService) List(opts *ListCallsQueryParams) (*CallsResponse, *Response, error)
- func (service *CallsService) PauseRecording(callID int) (*Response, error)
- func (service *CallsService) Query() *CallQueries
- func (service *CallsService) ResumeRecording(callID int) (*Response, error)
- func (service *CallsService) Search(opts *SearchCallsQueryParams) (*CallsResponse, *Response, error)
- func (service *CallsService) Tag(callID int, tags []int) (*Response, error)
- func (service *CallsService) Transfer(callID int, transferCall *CallTransfer) (*Response, error)
- func (service *CallsService) Unarchive(callID int) (*CallResponse, *Response, error)
- type Client
- func (client *Client) AuthenricateBasic(apiID string, apiToken string)
- func (client *Client) Authenticate(accessToken string)
- func (client *Client) Delete(url string, v ...interface{}) (*Response, error)
- func (client *Client) Do(req *http.Request, v interface{}) (*Response, error)
- func (client *Client) Get(url string, opts interface{}, v interface{}) (*Response, error)
- func (client *Client) NewRequest(method, urlStr string, opts interface{}, body interface{}) (*http.Request, error)
- func (client *Client) Post(url string, body interface{}, v interface{}) (*Response, error)
- func (client *Client) Put(url string, body interface{}, v interface{}) (*Response, error)
- type ClientConfig
- type CompaniesService
- type Company
- type CompanyResponse
- type Contact
- type ContactInfo
- type ContactInfoResponse
- type ContactQueries
- type ContactResponse
- type ContactsResponse
- type ContactsService
- func (service *ContactsService) AddEmail(contactID int, email *ContactInfo) (*ContactInfoResponse, *Response, error)
- func (service *ContactsService) AddNumber(contactID int, number *ContactInfo) (*ContactInfoResponse, *Response, error)
- func (service *ContactsService) Create(contact *CreateUpdateContact) (*ContactResponse, *Response, error)
- func (service *ContactsService) Delete(contactID int) (*Response, error)
- func (service *ContactsService) DeleteEmail(contactID int, emailID int) (*Response, error)
- func (service *ContactsService) DeleteNumber(contactID int, numberID int) (*Response, error)
- func (service *ContactsService) Get(contactID int) (*ContactResponse, *Response, error)
- func (service *ContactsService) List(opts *ListContactsQueryParams) (*ContactsResponse, *Response, error)
- func (service *ContactsService) Query() *ContactQueries
- func (service *ContactsService) Search(opts *SearchContactsQueryParams) (*ContactsResponse, *Response, error)
- func (service *ContactsService) Update(contactID int, contact *CreateUpdateContact) (*CreateUpdateContact, *Response, error)
- func (service *ContactsService) UpdateEmail(contactID int, emailID int, email *ContactInfo) (*ContactInfoResponse, *Response, error)
- func (service *ContactsService) UpdateNumber(contactID int, numberID int, number *ContactInfo) (*ContactInfoResponse, *Response, error)
- type ConversationIntelligenceParticipants
- type ConversationIntelligenceSentiment
- type ConversationIntelligenceSentimentResponse
- type ConversationIntelligenceService
- func (service *ConversationIntelligenceService) GetSentiment(callID int) (*ConversationIntelligenceSentimentResponse, *Response, error)
- func (service *ConversationIntelligenceService) GetSummary(callID int) (*ConversationIntelligenceSummaryResponse, *Response, error)
- func (service *ConversationIntelligenceService) GetTopics(callID int) (*ConversationIntelligenceTopicResponse, *Response, error)
- func (service *ConversationIntelligenceService) GetTranscription(callID int) (*ConversationIntelligenceTranscriptionResponse, *Response, error)
- type ConversationIntelligenceSummary
- type ConversationIntelligenceSummaryResponse
- type ConversationIntelligenceTopic
- type ConversationIntelligenceTopicResponse
- type ConversationIntelligenceTranscription
- type ConversationIntelligenceTranscriptionContent
- type ConversationIntelligenceTranscriptionResponse
- type ConversationIntelligenceTranscriptionUtterances
- type CreateTeam
- type CreateUpdateA2PCampaignAssociation
- type CreateUpdateContact
- type CreateUpdateDialerCampaign
- type CreateUpdateTag
- type CreateUpdateUser
- type CreateUpdateWebhook
- type DialerCampaign
- type DialerCampaignPhoneNumber
- type DialerCampaignPhoneNumberResponse
- type DialerCampaignsService
- func (service *DialerCampaignsService) AddNumbers(userId int, phoneNumbers *CreateUpdateDialerCampaign) (*Response, error)
- func (service *DialerCampaignsService) Create(userID int, dialerCampaign *CreateUpdateDialerCampaign) (*Response, error)
- func (service *DialerCampaignsService) Delete(userId int) (*Response, error)
- func (service *DialerCampaignsService) DeleteNumber(userId int, phoneNumberId int) (*Response, error)
- func (service *DialerCampaignsService) Get(userID int) (*DialerCampaign, *Response, error)
- func (service *DialerCampaignsService) ListNumbers(userId int) (*DialerCampaignPhoneNumberResponse, *Response, error)
- type ErrorResponse
- type GenericResponseMeta
- type InboundWebhook
- func (w *InboundWebhook) GetCallData() (*Call, error)
- func (w *InboundWebhook) GetContactData() (*Contact, error)
- func (w *InboundWebhook) GetConversationIntelligenceSentimentData() (*ConversationIntelligenceSentiment, error)
- func (w *InboundWebhook) GetConversationIntelligenceTranscriptionData() (*ConversationIntelligenceTranscription, error)
- func (w *InboundWebhook) GetIntegrationData() (*Integration, error)
- func (w *InboundWebhook) GetMessageData() (*Message, error)
- func (w *InboundWebhook) GetNumberData() (*Number, error)
- func (w *InboundWebhook) GetUserData() (*User, error)
- type Integration
- type IntegrationResponse
- type IntegrationService
- type ListA2PCampaignAssociationsQueryParams
- type ListCallsQueryParams
- func (p ListCallsQueryParams) FetchCallTimeline(value bool)
- func (p ListCallsQueryParams) FetchContact(value bool)
- func (p ListCallsQueryParams) FetchShortURLs(value bool)
- func (p ListCallsQueryParams) From(value string)
- func (p ListCallsQueryParams) Order(value string)
- func (p ListCallsQueryParams) Paginate(page int, perPage int)
- func (p ListCallsQueryParams) To(value string)
- type ListContactsQueryParams
- type ListNumbersQueryParams
- type ListTagsQueryParams
- type ListTeamsQueryParams
- type ListUsersAvailabilityQueryParams
- type ListUsersQueryParams
- type ListWebhooksQueryParams
- type MediaDetail
- type Message
- type Messages
- type MessagesService
- func (service *MessagesService) CreateNumberConfiguration(numberID int, numberConfiguration *NumberConfiguration) (*NumberConfiguration, *Response, error)
- func (service *MessagesService) DeleteNumberConfiguration(numberID int) (*Response, error)
- func (service *MessagesService) GetNumberConfiguration(numberID int) (*NumberConfiguration, *Response, error)
- func (service *MessagesService) Send(numberID int, message *NewMessage) (*Message, *Response, error)
- func (service *MessagesService) UpdateMessages(numberID int, messages *Messages) (*NumberResponse, *Response, error)
- type NewMessage
- type NewUserCall
- type Number
- type NumberConfiguration
- type NumberQueries
- type NumberResponse
- type NumbersResponse
- type NumbersService
- type QueryValues
- type Response
- type SearchCallsQueryParams
- func (p SearchCallsQueryParams) Direction(value string)
- func (p SearchCallsQueryParams) FetchCallTimeline(value bool)
- func (p SearchCallsQueryParams) FetchContact(value bool)
- func (p SearchCallsQueryParams) FetchShortURLs(value bool)
- func (p SearchCallsQueryParams) From(value string)
- func (p SearchCallsQueryParams) Order(value string)
- func (p SearchCallsQueryParams) Paginate(page int, perPage int)
- func (p SearchCallsQueryParams) PhoneNumber(value string)
- func (p SearchCallsQueryParams) To(value string)
- func (p SearchCallsQueryParams) UserID(value int)
- type SearchContactsQueryParams
- func (p SearchContactsQueryParams) Email(value string)
- func (p SearchContactsQueryParams) From(value string)
- func (p SearchContactsQueryParams) Order(value string)
- func (p SearchContactsQueryParams) OrderBy(value string)
- func (p SearchContactsQueryParams) Paginate(page int, perPage int)
- func (p SearchContactsQueryParams) PhoneNumber(value string)
- func (p SearchContactsQueryParams) To(value string)
- type SearchUsersQueryParams
- type Tag
- type TagQueries
- type TagResponse
- type TagsResponse
- type TagsService
- func (service *TagsService) Create(tag *CreateUpdateTag) (*TagResponse, *Response, error)
- func (service *TagsService) Delete(tagID int) (*Response, error)
- func (service *TagsService) Get(tagID int) (*TagResponse, *Response, error)
- func (service *TagsService) List(opts *ListTagsQueryParams) (*TagsResponse, *Response, error)
- func (service *TagsService) Query() *TagQueries
- func (service *TagsService) Update(tagID int, tag *CreateUpdateTag) (*TagResponse, *Response, error)
- type Team
- type TeamQueries
- type TeamResponse
- type TeamsResponse
- type TeamsService
- func (service *TeamsService) AddUser(teamID int, userID int) (*TeamResponse, *Response, error)
- func (service *TeamsService) Create(team *CreateTeam) (*TeamResponse, *Response, error)
- func (service *TeamsService) Delete(teamID int) (*Response, error)
- func (service *TeamsService) Get(teamID int) (*TeamResponse, *Response, error)
- func (service *TeamsService) List(opts *ListTeamsQueryParams) (*TeamsResponse, *Response, error)
- func (service *TeamsService) Query() *TeamQueries
- func (service *TeamsService) RemoveUser(teamID int, userID int) (*TeamResponse, *Response, error)
- type User
- type UserAvailabilitiesResponse
- type UserAvailability
- type UserQueries
- type UserResponse
- type UsersResponse
- type UsersService
- func (service *UsersService) Create(user *CreateUpdateUser) (*UserResponse, *Response, error)
- func (service *UsersService) Delete(userID int) (*Response, error)
- func (service *UsersService) DialNumber(userID int, call *NewUserCall) (*Response, error)
- func (service *UsersService) Get(userID int) (*UserResponse, *Response, error)
- func (service *UsersService) GetAvailability(userID int) (*UserAvailability, *Response, error)
- func (service *UsersService) List(opts *ListUsersQueryParams) (*UsersResponse, *Response, error)
- func (service *UsersService) ListAvailabilities(opts *ListUsersAvailabilityQueryParams) (*UserAvailabilitiesResponse, *Response, error)
- func (service *UsersService) Query() *UserQueries
- func (service *UsersService) StartOutboundCall(userID int, call *NewUserCall) (*Response, error)
- func (service *UsersService) Update(userID int, user *CreateUpdateUser) (*UserResponse, *Response, error)
- type Webhook
- type WebhookQueries
- type WebhookResponse
- type WebhookService
- func (service *WebhookService) Create(webhook *CreateUpdateWebhook) (*WebhookResponse, *Response, error)
- func (service *WebhookService) Delete(webhookID string) (*Response, error)
- func (service *WebhookService) Get(webhookID string) (*WebhookResponse, *Response, error)
- func (service *WebhookService) List(opts *ListWebhooksQueryParams) (*WebhooksResponse, *Response, error)
- func (service *WebhookService) Query() *WebhookQueries
- func (service *WebhookService) Update(webhookID string, webhook *CreateUpdateWebhook) (*WebhookResponse, *Response, error)
- type WebhooksResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A2PCampaignAssociation ¶
type A2PCampaignAssociation struct { ID int `json:"id,omitempty"` CompanyID int `json:"company_id,omitempty"` ExternalID string `json:"external_id,omitempty"` UpdateStatus string `json:"update_status,omitempty"` UpdateMessage string `json:"update_message,omitempty"` CreatedAt interface{} `json:"created_at,omitempty"` UpdatedAt interface{} `json:"updated_at,omitempty"` Numbers *[]int `json:"numbers,omitempty"` }
type A2PCampaignAssociationResponse ¶
type A2PCampaignAssociationResponse struct {
Contact *A2PCampaignAssociation `json:"a2p_campaign_associations,omitempty"`
}
type A2PCampaignAssociationsQueries ¶
type A2PCampaignAssociationsQueries struct{}
func (A2PCampaignAssociationsQueries) NewListA2PCampaignAssociations ¶
func (pq A2PCampaignAssociationsQueries) NewListA2PCampaignAssociations() *ListA2PCampaignAssociationsQueryParams
Creates Query parameters for 'ListContacts'
type A2PCampaignAssociationsResponse ¶
type A2PCampaignAssociationsResponse struct { Meta *GenericResponseMeta `json:"meta,omitempty"` Contacts *[]A2PCampaignAssociation `json:"a2p_campaign_associations,omitempty"` }
type A2PCampaignAssociationsService ¶
type A2PCampaignAssociationsService service
A2P Campaign Associations service
func (*A2PCampaignAssociationsService) Create ¶
func (service *A2PCampaignAssociationsService) Create(a2pCampaignAssociation *CreateUpdateA2PCampaignAssociation) (*A2PCampaignAssociationResponse, *Response, error)
Create A2P campaign association. Reference: https://developer.aircall.io/api-references/#create-an-a2p-campaign-association
func (*A2PCampaignAssociationsService) Delete ¶
func (service *A2PCampaignAssociationsService) Delete(a2pCampaignAssociationID int) (*Response, error)
Delete a contact. Reference: https://developer.aircall.io/api-references/#delete-an-a2p-campaign-association
func (*A2PCampaignAssociationsService) List ¶
func (service *A2PCampaignAssociationsService) List(queryParams *ListA2PCampaignAssociationsQueryParams) (*A2PCampaignAssociationsResponse, *Response, error)
Get all A2P campaign associations. Reference: https://developer.aircall.io/api-references/#list-a2p-campaign-associations
func (*A2PCampaignAssociationsService) Query ¶
func (service *A2PCampaignAssociationsService) Query() *A2PCampaignAssociationsQueries
Create Query parameters for accounts routes.
func (*A2PCampaignAssociationsService) Update ¶
func (service *A2PCampaignAssociationsService) Update(a2pCampaignAssociation *CreateUpdateA2PCampaignAssociation) (*A2PCampaignAssociationResponse, *Response, error)
Update A2P campaign association. Reference: https://developer.aircall.io/api-references/#update-an-a2p-campaign-association
type Call ¶
type Call struct { ID int `json:"id,omitempty"` Sid string `json:"sid,omitempty"` DirectLink string `json:"direct_link,omitempty"` Direction string `json:"direction,omitempty"` Status string `json:"status,omitempty"` MissedCallReason string `json:"missed_call_reason,omitempty"` StartedAt int `json:"started_at,omitempty"` AnsweredAt int `json:"answered_at,omitempty"` EndedAt int `json:"ended_at,omitempty"` Duration int `json:"duration,omitempty"` Voicemail string `json:"voicemail,omitempty"` Recording string `json:"recording,omitempty"` Asset string `json:"asset,omitempty"` RawDigits string `json:"raw_digits,omitempty"` Archived bool `json:"archived,omitempty"` Cost string `json:"cost,omitempty"` Contact *Contact `json:"contact,omitempty"` Number *Number `json:"number,omitempty"` User *User `json:"user,omitempty"` TransferredBy *User `json:"transferred_by,omitempty"` TransferredTo *User `json:"transferred_to,omitempty"` AssignedTo *User `json:"assigned_to,omitempty"` IvrOptionsSelected *CallIVROption `json:"ivr_options_selected,omitempty"` Comments *[]CallComment `json:"comments,omitempty"` Tags *[]CallTag `json:"tags,omitempty"` Participants *[]CallParticipant `json:"participants,omitempty"` Teams *[]Team `json:"teams,omitempty"` }
type CallActionBy ¶
type CallActionBy struct { ID int `json:"id,omitempty"` DirectLink string `json:"direct_link,omitempty"` Name string `json:"name,omitempty"` Email string `json:"email,omitempty"` Available bool `json:"available,omitempty"` AvailabilityStatus string `json:"availability_status,omitempty"` CreatedAt interface{} `json:"created_at,omitempty"` TimeZone string `json:"time_zone,omitempty"` Language string `json:"language,omitempty"` State string `json:"state,omitempty"` // Included in Webhook event only Substatus string `json:"substatus,omitempty"` }
type CallComment ¶
type CallComment struct { ID int `json:"id,omitempty"` Content string `json:"content,omitempty"` PostedAt int `json:"posted_at,omitempty"` PostedBy *CallActionBy `json:"posted_by,omitempty"` }
type CallIVROption ¶ added in v1.0.1
type CallIVROption struct { ID string `json:"id,omitempty"` Title string `json:"title,omitempty"` Key string `json:"key,omitempty"` Branch string `json:"branch,omitempty"` CreatedAt interface{} `json:"created_at,omitempty"` TransitionStartedAt string `json:"transition_started_at,omitempty"` TransitionEndedAt string `json:"transition_ended_at,omitempty"` }
type CallInsightCard ¶
type CallInsightCard struct {
Contents *[]CallInsightCardContents `json:"contents,omitempty"`
}
type CallInsightCardContents ¶
type CallParticipant ¶
type CallQueries ¶
type CallQueries struct{}
func (CallQueries) NewListCalls ¶
func (pq CallQueries) NewListCalls() *ListCallsQueryParams
Creates Query parameters for 'List'
func (CallQueries) NewSearchCalls ¶
func (pq CallQueries) NewSearchCalls() *SearchCallsQueryParams
Creates Query parameters for 'SearchCalls'
type CallResponse ¶
type CallResponse struct {
Call *Call `json:"call,omitempty"`
}
type CallTag ¶
type CallTag struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` CreatedAt interface{} `json:"created_at,omitempty"` TaggedBy *CallActionBy `json:"tagged_by,omitempty"` // Included in Webhook event only TaggedAt int `json:"tagged_at,omitempty"` }
type CallTransfer ¶
type CallsResponse ¶
type CallsResponse struct { Meta *GenericResponseMeta `json:"meta,omitempty"` Calls *[]Call `json:"calls,omitempty"` }
type CallsService ¶
type CallsService service
Call service
func (*CallsService) AddInsightCard ¶
func (service *CallsService) AddInsightCard(callID int, insightCard *CallInsightCard) (*Response, error)
Add insight card to call. Reference: https://developer.aircall.io/api-references/#insight-cards
func (*CallsService) Archive ¶
func (service *CallsService) Archive(callID int) (*CallResponse, *Response, error)
Archive a call. Reference: https://developer.aircall.io/api-references/#archive-a-call
func (*CallsService) Comment ¶
func (service *CallsService) Comment(callID int, comment string) (*Response, error)
Comment a call. Reference: https://developer.aircall.io/api-references/#comment-a-call
func (*CallsService) DeleteRecording ¶
func (service *CallsService) DeleteRecording(callID int) (*Response, error)
Delete call recording. Reference: https://developer.aircall.io/api-references/#delete-call-recording
func (*CallsService) DeleteVoicemail ¶
func (service *CallsService) DeleteVoicemail(callID int) (*Response, error)
Delete call voicemail. Reference: https://developer.aircall.io/api-references/#delete-call-voicemail
func (*CallsService) Get ¶
func (service *CallsService) Get(callID int) (*CallResponse, *Response, error)
Get a call. Reference: https://developer.aircall.io/api-references/#retrieve-a-call
func (*CallsService) List ¶
func (service *CallsService) List(opts *ListCallsQueryParams) (*CallsResponse, *Response, error)
List calls. Reference: https://developer.aircall.io/api-references/#list-all-calls
func (*CallsService) PauseRecording ¶
func (service *CallsService) PauseRecording(callID int) (*Response, error)
Pause recording on a call. Reference: https://developer.aircall.io/api-references/#pause-recording-on-a-call
func (*CallsService) Query ¶
func (service *CallsService) Query() *CallQueries
Create Query parameters for accounts routes.
func (*CallsService) ResumeRecording ¶
func (service *CallsService) ResumeRecording(callID int) (*Response, error)
Resume recording on a call. Reference: https://developer.aircall.io/api-references/#resume-recording-on-a-call
func (*CallsService) Search ¶
func (service *CallsService) Search(opts *SearchCallsQueryParams) (*CallsResponse, *Response, error)
Search calls. Reference: https://developer.aircall.io/api-references/#search-calls
func (*CallsService) Tag ¶
func (service *CallsService) Tag(callID int, tags []int) (*Response, error)
Tag a call. Reference: https://developer.aircall.io/api-references/#tag-a-call
func (*CallsService) Transfer ¶
func (service *CallsService) Transfer(callID int, transferCall *CallTransfer) (*Response, error)
Transfer a call. Reference: https://developer.aircall.io/api-references/#transfer-a-call
func (*CallsService) Unarchive ¶
func (service *CallsService) Unarchive(callID int) (*CallResponse, *Response, error)
Unarchive a call. Reference: https://developer.aircall.io/api-references/#unarchive-a-call
type Client ¶
type Client struct { A2PCampaignAssociations *A2PCampaignAssociationsService Call *CallsService Contact *ContactsService ConversationIntelligence *ConversationIntelligenceService Company *CompaniesService Integration *IntegrationService DialerCampaign *DialerCampaignsService Number *NumbersService Message *MessagesService User *UsersService Tag *TagsService Team *TeamsService Webhook *WebhookService // contains filtered or unexported fields }
func NewWithConfig ¶
func NewWithConfig(config ClientConfig) *Client
func (*Client) AuthenricateBasic ¶
func (*Client) Authenticate ¶
func (*Client) NewRequest ¶
func (client *Client) NewRequest(method, urlStr string, opts interface{}, body interface{}) (*http.Request, error)
NewRequest creates an API request
type ClientConfig ¶
type CompaniesService ¶
type CompaniesService service
Company service
func (*CompaniesService) Get ¶
func (service *CompaniesService) Get() (*CompanyResponse, *Response, error)
Get a company. Reference: https://developer.aircall.io/api-references/#retrieve-company-information
type CompanyResponse ¶
type CompanyResponse struct {
Company *Company `json:"company,omitempty"`
}
type Contact ¶
type Contact struct { ID interface{} `json:"id,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` CompanyName string `json:"company_name,omitempty"` Information string `json:"information,omitempty"` DirectLink string `json:"direct_link,omitempty"` CreatedAt interface{} `json:"created_at,omitempty"` UpdatedAt interface{} `json:"updated_at,omitempty"` PhoneNumbers *[]ContactInfo `json:"phone_numbers,omitempty"` Emails *[]ContactInfo `json:"emails,omitempty"` }
type ContactInfo ¶
type ContactInfoResponse ¶
type ContactInfoResponse struct { PhoneDetail *ContactInfo `json:"phone_detail,omitempty"` EmailDetail *ContactInfo `json:"email_detail,omitempty"` }
type ContactQueries ¶
type ContactQueries struct{}
func (ContactQueries) NewListContacts ¶
func (pq ContactQueries) NewListContacts() *ListContactsQueryParams
Creates Query parameters for 'ListContacts'
func (ContactQueries) NewSearchContacts ¶
func (pq ContactQueries) NewSearchContacts() *SearchContactsQueryParams
Creates Query parameters for 'ListContacts'
type ContactResponse ¶
type ContactResponse struct {
Contact *Contact `json:"contact,omitempty"`
}
type ContactsResponse ¶
type ContactsResponse struct { Meta *GenericResponseMeta `json:"meta,omitempty"` Contacts *[]Contact `json:"contacts,omitempty"` }
type ContactsService ¶
type ContactsService service
Contact service
func (*ContactsService) AddEmail ¶
func (service *ContactsService) AddEmail(contactID int, email *ContactInfo) (*ContactInfoResponse, *Response, error)
Add an email to a contact. Reference: https://developer.aircall.io/api-references/#add-email-to-a-contact
func (*ContactsService) AddNumber ¶
func (service *ContactsService) AddNumber(contactID int, number *ContactInfo) (*ContactInfoResponse, *Response, error)
Add a phone number to a contact. Reference: https://developer.aircall.io/api-references/#add-phone-number-to-a-contact
func (*ContactsService) Create ¶
func (service *ContactsService) Create(contact *CreateUpdateContact) (*ContactResponse, *Response, error)
Create a contact. Reference: https://developer.aircall.io/api-references/#create-a-contact
func (*ContactsService) Delete ¶
func (service *ContactsService) Delete(contactID int) (*Response, error)
Delete a contact. Reference: https://developer.aircall.io/api-references/#delete-a-contact
func (*ContactsService) DeleteEmail ¶
func (service *ContactsService) DeleteEmail(contactID int, emailID int) (*Response, error)
Delete a phone number from a contact. Reference: https://developer.aircall.io/api-references/#delete-phone-number-from-a-contact
func (*ContactsService) DeleteNumber ¶
func (service *ContactsService) DeleteNumber(contactID int, numberID int) (*Response, error)
Delete a phone number from a contact. Reference: https://developer.aircall.io/api-references/#delete-phone-number-from-a-contact
func (*ContactsService) Get ¶
func (service *ContactsService) Get(contactID int) (*ContactResponse, *Response, error)
Get a contact. Reference: https://developer.aircall.io/api-references/#retrieve-a-contact
func (*ContactsService) List ¶
func (service *ContactsService) List(opts *ListContactsQueryParams) (*ContactsResponse, *Response, error)
List contacts. Reference: https://developer.aircall.io/api-references/#list-all-contacts
func (*ContactsService) Query ¶
func (service *ContactsService) Query() *ContactQueries
Create Query parameters for accounts routes.
func (*ContactsService) Search ¶
func (service *ContactsService) Search(opts *SearchContactsQueryParams) (*ContactsResponse, *Response, error)
Search contacts. Reference: https://developer.aircall.io/api-references/#search-contacts
func (*ContactsService) Update ¶
func (service *ContactsService) Update(contactID int, contact *CreateUpdateContact) (*CreateUpdateContact, *Response, error)
Update a contact. Reference: https://developer.aircall.io/api-references/#update-a-contact
func (*ContactsService) UpdateEmail ¶
func (service *ContactsService) UpdateEmail(contactID int, emailID int, email *ContactInfo) (*ContactInfoResponse, *Response, error)
Update a phone number to a contact. Reference: https://developer.aircall.io/api-references/#update-phone-number-to-a-contact
func (*ContactsService) UpdateNumber ¶
func (service *ContactsService) UpdateNumber(contactID int, numberID int, number *ContactInfo) (*ContactInfoResponse, *Response, error)
Update a phone number to a contact. Reference: https://developer.aircall.io/api-references/#update-phone-number-to-a-contact
type ConversationIntelligenceSentiment ¶
type ConversationIntelligenceSentiment struct { ID int `json:"id,omitempty"` CallID int `json:"call_id,omitempty"` Participants *[]ConversationIntelligenceParticipants `json:"participants,omitempty"` }
type ConversationIntelligenceSentimentResponse ¶
type ConversationIntelligenceSentimentResponse struct {
Sentiment *ConversationIntelligenceSentiment `json:"sentiment,omitempty"`
}
type ConversationIntelligenceService ¶
type ConversationIntelligenceService service
Conversation Intelligence service
func (*ConversationIntelligenceService) GetSentiment ¶
func (service *ConversationIntelligenceService) GetSentiment(callID int) (*ConversationIntelligenceSentimentResponse, *Response, error)
Get a call sentiment. Reference: https://developer.aircall.io/api-references/#retrieve-sentiments
func (*ConversationIntelligenceService) GetSummary ¶
func (service *ConversationIntelligenceService) GetSummary(callID int) (*ConversationIntelligenceSummaryResponse, *Response, error)
Get a call summary. Reference: https://developer.aircall.io/api-references/#retrieve-a-summary
func (*ConversationIntelligenceService) GetTopics ¶
func (service *ConversationIntelligenceService) GetTopics(callID int) (*ConversationIntelligenceTopicResponse, *Response, error)
Get a call topics. Reference: https://developer.aircall.io/api-references/#retrieve-topics
func (*ConversationIntelligenceService) GetTranscription ¶ added in v1.0.2
func (service *ConversationIntelligenceService) GetTranscription(callID int) (*ConversationIntelligenceTranscriptionResponse, *Response, error)
Get a call transcription. Reference: https://developer.aircall.io/api-references/#retrieve-a-transcription
type ConversationIntelligenceSummaryResponse ¶
type ConversationIntelligenceSummaryResponse struct {
Summary *ConversationIntelligenceSummary `json:"summary,omitempty"`
}
type ConversationIntelligenceTopicResponse ¶
type ConversationIntelligenceTopicResponse struct {
Topic *ConversationIntelligenceTopic `json:"topic,omitempty"`
}
type ConversationIntelligenceTranscription ¶
type ConversationIntelligenceTranscription struct { ID int `json:"id,omitempty"` CallID int `json:"call_id,omitempty"` CallCreatedAt interface{} `json:"call_created_at,omitempty"` Type string `json:"type,omitempty"` Content *ConversationIntelligenceTranscriptionContent `json:"content,omitempty"` }
type ConversationIntelligenceTranscriptionContent ¶
type ConversationIntelligenceTranscriptionContent struct { Language string `json:"language,omitempty"` Utterances *[]ConversationIntelligenceTranscriptionUtterances `json:"utterances,omitempty"` }
type ConversationIntelligenceTranscriptionResponse ¶
type ConversationIntelligenceTranscriptionResponse struct {
Transcription *ConversationIntelligenceTranscription `json:"transcription,omitempty"`
}
type ConversationIntelligenceTranscriptionUtterances ¶
type ConversationIntelligenceTranscriptionUtterances struct { StartTime float64 `json:"start_time,omitempty"` EndTime float64 `json:"end_time,omitempty"` Text string `json:"text,omitempty"` ParticipantType string `json:"participant_type,omitempty"` PhoneNumber string `json:"phone_number,omitempty"` UserID int `json:"user_id,omitempty"` }
type CreateTeam ¶
type CreateTeam struct {
Name string `json:"name,omitempty"`
}
type CreateUpdateContact ¶
type CreateUpdateContact struct { FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` Information string `json:"information,omitempty"` CompanyName string `json:"company_name,omitempty"` PhoneNumbers []ContactInfo `json:"phone_numbers,omitempty"` Emails []ContactInfo `json:"emails,omitempty"` }
type CreateUpdateDialerCampaign ¶
type CreateUpdateDialerCampaign struct {
PhoneNumbers []string `json:"phone_numbers,omitempty"`
}
type CreateUpdateTag ¶
type CreateUpdateUser ¶
type CreateUpdateUser struct { Email string `json:"email,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` AvailabilityStatus string `json:"availability_status,omitempty"` RoleIDs []string `json:"role_ids,omitempty"` WrapUpTime int `json:"wrap_up_time,omitempty"` }
type CreateUpdateWebhook ¶
type DialerCampaign ¶
type DialerCampaignPhoneNumberResponse ¶
type DialerCampaignPhoneNumberResponse struct {
PhoneNumbers *[]DialerCampaignPhoneNumber `json:"numbers,omitempty"`
}
type DialerCampaignsService ¶
type DialerCampaignsService service
Dialer Campaign service
func (*DialerCampaignsService) AddNumbers ¶
func (service *DialerCampaignsService) AddNumbers(userId int, phoneNumbers *CreateUpdateDialerCampaign) (*Response, error)
Add dialer campaign phone numbers. Reference: https://developer.aircall.io/api-references/#add-phone-numbers
func (*DialerCampaignsService) Create ¶
func (service *DialerCampaignsService) Create(userID int, dialerCampaign *CreateUpdateDialerCampaign) (*Response, error)
Create a dialer campaign. Reference: https://developer.aircall.io/api-references/#create-a-dialer-campaign
func (*DialerCampaignsService) Delete ¶
func (service *DialerCampaignsService) Delete(userId int) (*Response, error)
Delete a dialer campaign. Reference: https://developer.aircall.io/api-references/#delete-a-dialer-campaign
func (*DialerCampaignsService) DeleteNumber ¶
func (service *DialerCampaignsService) DeleteNumber(userId int, phoneNumberId int) (*Response, error)
Delete dialer campaign phone number. Reference: https://developer.aircall.io/api-references/#delete-a-phone-number
func (*DialerCampaignsService) Get ¶
func (service *DialerCampaignsService) Get(userID int) (*DialerCampaign, *Response, error)
Get a dialer campaign. Reference: https://developer.aircall.io/api-references/#retrieve-a-dialer-campaign
func (*DialerCampaignsService) ListNumbers ¶
func (service *DialerCampaignsService) ListNumbers(userId int) (*DialerCampaignPhoneNumberResponse, *Response, error)
List dialer campaign phone numbers. Reference: https://developer.aircall.io/api-references/#retrieve-phone-numbers
type ErrorResponse ¶
type ErrorResponse struct { Response *http.Response Message string `json:"message,omitempty"` ErrorMessage string `json:"error,omitempty"` Troubleshoot string `json:"troubleshoot,omitempty"` Success bool `json:"success,omitempty"` }
func (*ErrorResponse) Error ¶
func (response *ErrorResponse) Error() string
type GenericResponseMeta ¶
type GenericResponseMeta struct { Count int `json:"count,omitempty"` Total int `json:"total,omitempty"` CurrentPage int `json:"current_page,omitempty"` PerPage int `json:"per_page,omitempty"` NextPageLink string `json:"next_page_link,omitempty"` PreviousPageLink string `json:"previous_page_link,omitempty"` }
type InboundWebhook ¶
type InboundWebhook struct { Resource string `json:"resource,omitempty"` Event string `json:"event,omitempty"` EventName string `json:"event_name,omitempty"` Timestamp int `json:"timestamp,omitempty"` Token string `json:"token,omitempty"` Data json.RawMessage `json:"data,omitempty"` }
func (*InboundWebhook) GetCallData ¶
func (w *InboundWebhook) GetCallData() (*Call, error)
func (*InboundWebhook) GetContactData ¶
func (w *InboundWebhook) GetContactData() (*Contact, error)
func (*InboundWebhook) GetConversationIntelligenceSentimentData ¶ added in v1.0.1
func (w *InboundWebhook) GetConversationIntelligenceSentimentData() (*ConversationIntelligenceSentiment, error)
func (*InboundWebhook) GetConversationIntelligenceTranscriptionData ¶ added in v1.0.1
func (w *InboundWebhook) GetConversationIntelligenceTranscriptionData() (*ConversationIntelligenceTranscription, error)
func (*InboundWebhook) GetIntegrationData ¶ added in v1.0.1
func (w *InboundWebhook) GetIntegrationData() (*Integration, error)
func (*InboundWebhook) GetMessageData ¶
func (w *InboundWebhook) GetMessageData() (*Message, error)
func (*InboundWebhook) GetNumberData ¶
func (w *InboundWebhook) GetNumberData() (*Number, error)
func (*InboundWebhook) GetUserData ¶
func (w *InboundWebhook) GetUserData() (*User, error)
type Integration ¶
type Integration struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` CustomName string `json:"custom_name,omitempty"` Logo string `json:"logo,omitempty"` CompanyID int `json:"company_id,omitempty"` Status string `json:"status,omitempty"` Active bool `json:"active,omitempty"` NumbersCount int `json:"numbers_count,omitempty"` NumberIDs *[]int `json:"number_ids,omitempty"` User *User `json:"user,omitempty"` // Included in Webhook event only IntegrationID int `json:"integration_id,omitempty"` }
type IntegrationResponse ¶
type IntegrationResponse struct {
Integration *Integration `json:"integration,omitempty"`
}
type IntegrationService ¶
type IntegrationService service
Integration service
func (*IntegrationService) Disable ¶
func (service *IntegrationService) Disable() (*Response, error)
Disable an integration. Reference: https://developer.aircall.io/api-references/#disable-integration
func (*IntegrationService) Enable ¶
func (service *IntegrationService) Enable(install ...bool) (*Response, error)
Enable an integration. Reference: https://developer.aircall.io/api-references/#enable-integration
func (*IntegrationService) Get ¶
func (service *IntegrationService) Get() (*IntegrationResponse, *Response, error)
Get an integration. Reference: https://developer.aircall.io/api-references/#retrieve-a-integration
type ListA2PCampaignAssociationsQueryParams ¶
type ListA2PCampaignAssociationsQueryParams struct {
QueryValues
}
Query parameters for 'ListA2PCampaignAssociations' method.
func (ListA2PCampaignAssociationsQueryParams) Paginate ¶
func (p ListA2PCampaignAssociationsQueryParams) Paginate(page int, perPage int)
Set 'page' and 'per_page' for for 'List' method.
type ListCallsQueryParams ¶
type ListCallsQueryParams struct {
QueryValues
}
Query parameters for 'List' method.
func (ListCallsQueryParams) FetchCallTimeline ¶
func (p ListCallsQueryParams) FetchCallTimeline(value bool)
Set 'fetch_call_timeline' for for 'List' method.
func (ListCallsQueryParams) FetchContact ¶
func (p ListCallsQueryParams) FetchContact(value bool)
Set 'fetch_contact' for for 'List' method.
func (ListCallsQueryParams) FetchShortURLs ¶
func (p ListCallsQueryParams) FetchShortURLs(value bool)
Set 'fetch_short_urls' for for 'List' method.
func (ListCallsQueryParams) From ¶
func (p ListCallsQueryParams) From(value string)
Set from for for 'List' method.
func (ListCallsQueryParams) Order ¶
func (p ListCallsQueryParams) Order(value string)
Set 'order' for for 'List' method.
func (ListCallsQueryParams) Paginate ¶
func (p ListCallsQueryParams) Paginate(page int, perPage int)
Set 'page' and 'per_page' for for 'List' method.
func (ListCallsQueryParams) To ¶
func (p ListCallsQueryParams) To(value string)
Set 'to' for for 'List' method.
type ListContactsQueryParams ¶
type ListContactsQueryParams struct {
QueryValues
}
Query parameters for 'ListContacts' method.
func (ListContactsQueryParams) From ¶
func (p ListContactsQueryParams) From(value string)
Set 'from' for for 'List' method.
func (ListContactsQueryParams) Order ¶
func (p ListContactsQueryParams) Order(value string)
Set 'order' for for 'List' method.
func (ListContactsQueryParams) OrderBy ¶
func (p ListContactsQueryParams) OrderBy(value string)
Set 'order_by' by for for 'List' method.
func (ListContactsQueryParams) Paginate ¶
func (p ListContactsQueryParams) Paginate(page int, perPage int)
Set 'page' and 'per_page' for for 'List' method.
func (ListContactsQueryParams) To ¶
func (p ListContactsQueryParams) To(value string)
Set 'to' for for 'List' method.
type ListNumbersQueryParams ¶
type ListNumbersQueryParams struct {
QueryValues
}
Query parameters for 'ListNumbers' method.
func (ListNumbersQueryParams) From ¶
func (p ListNumbersQueryParams) From(value string)
Set from for for 'List' method.
func (ListNumbersQueryParams) Order ¶
func (p ListNumbersQueryParams) Order(value string)
Set 'order' for for 'List' method.
func (ListNumbersQueryParams) Paginate ¶
func (p ListNumbersQueryParams) Paginate(page int, perPage int)
Set 'page' and 'per_page' for for 'List' method.
func (ListNumbersQueryParams) To ¶
func (p ListNumbersQueryParams) To(value string)
Set 'to' for for 'List' method.
type ListTagsQueryParams ¶
type ListTagsQueryParams struct {
QueryValues
}
Query parameters for 'List' method.
func (ListTagsQueryParams) Paginate ¶
func (p ListTagsQueryParams) Paginate(page int, perPage int)
Set 'page' and 'per_page' for for 'List' method.
type ListTeamsQueryParams ¶
type ListTeamsQueryParams struct {
QueryValues
}
Query parameters for 'ListTeams' method.
func (ListTeamsQueryParams) Order ¶
func (p ListTeamsQueryParams) Order(value string)
Set 'order' for for 'List' method.
func (ListTeamsQueryParams) Paginate ¶
func (p ListTeamsQueryParams) Paginate(page int, perPage int)
Set 'page' and 'per_page' for for 'List' method.
type ListUsersAvailabilityQueryParams ¶
type ListUsersAvailabilityQueryParams struct {
QueryValues
}
Query parameters for 'ListAvailability' method.
func (ListUsersAvailabilityQueryParams) From ¶
func (p ListUsersAvailabilityQueryParams) From(value string)
Set 'from' for for 'ListAvailability' method.
func (ListUsersAvailabilityQueryParams) Order ¶
func (p ListUsersAvailabilityQueryParams) Order(value string)
Set 'order' for for 'ListAvailability' method.
func (ListUsersAvailabilityQueryParams) Paginate ¶
func (p ListUsersAvailabilityQueryParams) Paginate(page int, perPage int)
Set 'page' and 'per_page' for for 'ListAvailability' method.
func (ListUsersAvailabilityQueryParams) To ¶
func (p ListUsersAvailabilityQueryParams) To(value string)
Set 'to' for for 'ListAvailability ' method.
type ListUsersQueryParams ¶
type ListUsersQueryParams struct {
QueryValues
}
Query parameters for 'List' method.
func (ListUsersQueryParams) From ¶
func (p ListUsersQueryParams) From(value string)
Set 'from' for for 'List' method.
func (ListUsersQueryParams) Order ¶
func (p ListUsersQueryParams) Order(value string)
Set 'order' for for 'List' method.
func (ListUsersQueryParams) Paginate ¶
func (p ListUsersQueryParams) Paginate(page int, perPage int)
Set 'page' and 'per_page' for for 'List' method.
func (ListUsersQueryParams) To ¶
func (p ListUsersQueryParams) To(value string)
Set 'to' for for 'List ' method.
type ListWebhooksQueryParams ¶
type ListWebhooksQueryParams struct {
QueryValues
}
Query parameters for 'ListWebhooks' method.
func (ListWebhooksQueryParams) Order ¶
func (p ListWebhooksQueryParams) Order(value string)
func (ListWebhooksQueryParams) Paginate ¶
func (p ListWebhooksQueryParams) Paginate(page int, perPage int)
type MediaDetail ¶
type Message ¶
type Message struct { ID string `json:"id,omitempty"` DirectLink string `json:"direct_link,omitempty"` Direction string `json:"direction,omitempty"` ExternalNumber string `json:"external_number,omitempty"` Body string `json:"body,omitempty"` Status string `json:"status,omitempty"` RawDigits string `json:"raw_digits,omitempty"` CreatedAt interface{} `json:"created_at,omitempty"` UpdatedAt interface{} `json:"updated_at,omitempty"` SentAt interface{} `json:"sent_at,omitempty"` MediaURL *[]string `json:"media_url,omitempty"` User *User `json:"user,omitempty"` Number *Number `json:"number,omitempty"` Contact *Contact `json:"contact,omitempty"` MediaDetails *[]MediaDetail `json:"media_details,omitempty"` }
type Messages ¶
type Messages struct { Welcome string `json:"welcome,omitempty"` Waiting string `json:"waiting,omitempty"` RingingTone string `json:"ringing_tone,omitempty"` UnansweredCall string `json:"unanswered_call,omitempty"` AfterHours string `json:"after_hours,omitempty"` IVR string `json:"ivr,omitempty"` Voicemail string `json:"voicemail,omitempty"` Closed string `json:"closed,omitempty"` CallbackLater string `json:"callback_later,omitempty"` }
type MessagesService ¶
type MessagesService service
Message service
func (*MessagesService) CreateNumberConfiguration ¶
func (service *MessagesService) CreateNumberConfiguration(numberID int, numberConfiguration *NumberConfiguration) (*NumberConfiguration, *Response, error)
Create number configuration. Reference: https://developer.aircall.io/api-references/#create-number-configuration
func (*MessagesService) DeleteNumberConfiguration ¶
func (service *MessagesService) DeleteNumberConfiguration(numberID int) (*Response, error)
Delete number configuration. Reference: https://developer.aircall.io/api-references/#fetch-number-configuration
func (*MessagesService) GetNumberConfiguration ¶
func (service *MessagesService) GetNumberConfiguration(numberID int) (*NumberConfiguration, *Response, error)
Get number configuration. Reference: https://developer.aircall.io/api-references/#fetch-number-configuration
func (*MessagesService) Send ¶
func (service *MessagesService) Send(numberID int, message *NewMessage) (*Message, *Response, error)
Send message. Reference: https://developer.aircall.io/api-references/#send-message
func (*MessagesService) UpdateMessages ¶
func (service *MessagesService) UpdateMessages(numberID int, messages *Messages) (*NumberResponse, *Response, error)
Update music and messages. Reference: https://developer.aircall.io/api-references/#update-music-and-messages
type NewMessage ¶
type NewUserCall ¶
type Number ¶
type Number struct { ID int `json:"id,omitempty"` DirectLink string `json:"direct_link,omitempty"` Name string `json:"name,omitempty"` Digits string `json:"digits,omitempty"` CreatedAt interface{} `json:"created_at,omitempty"` Country string `json:"country,omitempty"` TimeZone string `json:"time_zone,omitempty"` Open bool `json:"open,omitempty"` AvailabilityStatus string `json:"availability_status,omitempty"` IsIVR bool `json:"is_ivr,omitempty"` LiveRecordingActivated bool `json:"live_recording_activated,omitempty"` Priority *int `json:"priority,omitempty"` Messages *Messages `json:"messages,omitempty"` Users *[]User `json:"users,omitempty"` }
type NumberConfiguration ¶
type NumberQueries ¶
type NumberQueries struct{}
func (NumberQueries) NewListNumbers ¶
func (pq NumberQueries) NewListNumbers() *ListNumbersQueryParams
Creates Query parameters for 'ListNumbers'
type NumberResponse ¶
type NumberResponse struct {
Number *Number `json:"number,omitempty"`
}
type NumbersResponse ¶
type NumbersResponse struct { Meta *GenericResponseMeta `json:"meta,omitempty"` Numbers *[]Number `json:"numbers,omitempty"` }
type NumbersService ¶
type NumbersService service
Number service
func (*NumbersService) Get ¶
func (service *NumbersService) Get(numberID int) (*NumberResponse, *Response, error)
Get a number. Reference: https://developer.aircall.io/api-references/#retrieve-a-number
func (*NumbersService) List ¶
func (service *NumbersService) List(opts *ListNumbersQueryParams) (*NumbersResponse, *Response, error)
List calls. Reference: https://developer.aircall.io/api-references/#list-all-calls
func (*NumbersService) Update ¶
func (service *NumbersService) Update(numberID int, number *Number) (*NumberResponse, *Response, error)
Update a number. Reference: https://developer.aircall.io/api-references/#update-a-number
type QueryValues ¶
type SearchCallsQueryParams ¶
type SearchCallsQueryParams struct {
QueryValues
}
Query parameters for 'SearchCalls' method.
func (SearchCallsQueryParams) Direction ¶
func (p SearchCallsQueryParams) Direction(value string)
Set 'direction' for for 'Search' method.
func (SearchCallsQueryParams) FetchCallTimeline ¶
func (p SearchCallsQueryParams) FetchCallTimeline(value bool)
Set 'fetch_call_timeline' for for 'SearchCalls' method.
func (SearchCallsQueryParams) FetchContact ¶
func (p SearchCallsQueryParams) FetchContact(value bool)
Set 'fetch_contact' for for 'SearchCalls' method.
func (SearchCallsQueryParams) FetchShortURLs ¶
func (p SearchCallsQueryParams) FetchShortURLs(value bool)
Set 'fetch_short_urls' for for 'SearchCalls' method.
func (SearchCallsQueryParams) From ¶
func (p SearchCallsQueryParams) From(value string)
Set from for for 'Search' method.
func (SearchCallsQueryParams) Order ¶
func (p SearchCallsQueryParams) Order(value string)
Set 'order' for for 'Search' method.
func (SearchCallsQueryParams) Paginate ¶
func (p SearchCallsQueryParams) Paginate(page int, perPage int)
Set 'page' and 'per_page' for for 'Search' method.
func (SearchCallsQueryParams) PhoneNumber ¶
func (p SearchCallsQueryParams) PhoneNumber(value string)
Set 'phone_number' for for 'Search' method.
func (SearchCallsQueryParams) To ¶
func (p SearchCallsQueryParams) To(value string)
Set 'to' for for 'Search' method.
func (SearchCallsQueryParams) UserID ¶
func (p SearchCallsQueryParams) UserID(value int)
Set 'user_id' for for 'Search' method.
type SearchContactsQueryParams ¶
type SearchContactsQueryParams struct {
QueryValues
}
Query parameters for 'SearchContacts' method.
func (SearchContactsQueryParams) Email ¶
func (p SearchContactsQueryParams) Email(value string)
Set 'email' for for 'Search' method.
func (SearchContactsQueryParams) From ¶
func (p SearchContactsQueryParams) From(value string)
Set from for for 'Search' method.
func (SearchContactsQueryParams) Order ¶
func (p SearchContactsQueryParams) Order(value string)
Set 'order' for for 'Search' method.
func (SearchContactsQueryParams) OrderBy ¶
func (p SearchContactsQueryParams) OrderBy(value string)
Set 'order_by' by for for 'Search' method.
func (SearchContactsQueryParams) Paginate ¶
func (p SearchContactsQueryParams) Paginate(page int, perPage int)
Set 'page' and 'per_page' for for 'Search' method.
func (SearchContactsQueryParams) PhoneNumber ¶
func (p SearchContactsQueryParams) PhoneNumber(value string)
Set 'phone_number' for for 'Search' method.
func (SearchContactsQueryParams) To ¶
func (p SearchContactsQueryParams) To(value string)
Set 'to' for for 'Search' method.
type SearchUsersQueryParams ¶
type SearchUsersQueryParams struct {
QueryValues
}
Query parameters for 'SearchUsers' method.
type TagQueries ¶
type TagQueries struct{}
func (TagQueries) NewListTags ¶
func (pq TagQueries) NewListTags() *ListTagsQueryParams
Creates Query parameters for 'List'
type TagResponse ¶
type TagResponse struct {
Tag *Tag `json:"tag,omitempty"`
}
type TagsResponse ¶
type TagsResponse struct { Meta *GenericResponseMeta `json:"meta,omitempty"` Tags *[]Tag `json:"tags,omitempty"` }
type TagsService ¶
type TagsService service
Tag service
func (*TagsService) Create ¶
func (service *TagsService) Create(tag *CreateUpdateTag) (*TagResponse, *Response, error)
Create a tag. Reference: https://developer.aircall.io/api-references/#create-a-tag
func (*TagsService) Delete ¶
func (service *TagsService) Delete(tagID int) (*Response, error)
Delete a tag. Reference: https://developer.aircall.io/api-references/#delete-a-tag
func (*TagsService) Get ¶
func (service *TagsService) Get(tagID int) (*TagResponse, *Response, error)
Get a tag. Reference: https://developer.aircall.io/api-references/#retrieve-a-tag
func (*TagsService) List ¶
func (service *TagsService) List(opts *ListTagsQueryParams) (*TagsResponse, *Response, error)
List tags. Reference: https://developer.aircall.io/api-references/#list-all-tags
func (*TagsService) Query ¶
func (service *TagsService) Query() *TagQueries
Create Query parameters for accounts routes.
func (*TagsService) Update ¶
func (service *TagsService) Update(tagID int, tag *CreateUpdateTag) (*TagResponse, *Response, error)
Update a tag. Reference: https://developer.aircall.io/api-references/#update-a-tag
type TeamQueries ¶
type TeamQueries struct{}
func (TeamQueries) NewListTeams ¶
func (pq TeamQueries) NewListTeams() *ListTeamsQueryParams
Creates Query parameters for 'ListContacts'
type TeamResponse ¶
type TeamResponse struct {
Team *Team `json:"team,omitempty"`
}
type TeamsResponse ¶
type TeamsResponse struct { Meta *GenericResponseMeta `json:"meta,omitempty"` Teams *[]Team `json:"teams,omitempty"` }
type TeamsService ¶
type TeamsService service
Team service
func (*TeamsService) AddUser ¶
func (service *TeamsService) AddUser(teamID int, userID int) (*TeamResponse, *Response, error)
Add a user to a team. Reference: https://developer.aircall.io/api-references/#add-a-user-to-a-team
func (*TeamsService) Create ¶
func (service *TeamsService) Create(team *CreateTeam) (*TeamResponse, *Response, error)
Create a team. Reference: https://developer.aircall.io/api-references/#create-a-team
func (*TeamsService) Delete ¶
func (service *TeamsService) Delete(teamID int) (*Response, error)
Delete a team. Reference: https://developer.aircall.io/api-references/#delete-a-team
func (*TeamsService) Get ¶
func (service *TeamsService) Get(teamID int) (*TeamResponse, *Response, error)
Get a team. Reference: https://developer.aircall.io/api-references/#retrieve-a-team
func (*TeamsService) List ¶
func (service *TeamsService) List(opts *ListTeamsQueryParams) (*TeamsResponse, *Response, error)
List teams. Reference: https://developer.aircall.io/api-references/#list-all-teams
func (*TeamsService) Query ¶
func (service *TeamsService) Query() *TeamQueries
Create Query parameters for accounts routes.
func (*TeamsService) RemoveUser ¶
func (service *TeamsService) RemoveUser(teamID int, userID int) (*TeamResponse, *Response, error)
Remove a user from a team. Reference: https://developer.aircall.io/api-references/#remove-a-user-from-a-team
type User ¶
type User struct { ID int `json:"id,omitempty"` DirectLink string `json:"direct_link,omitempty"` Name string `json:"name,omitempty"` Email string `json:"email,omitempty"` CreatedAt interface{} `json:"created_at,omitempty"` Available bool `json:"available,omitempty"` AvailabilityStatus string `json:"availability_status,omitempty"` Substatus string `json:"substatus,omitempty"` TimeZone string `json:"time_zone,omitempty"` Language string `json:"language,omitempty"` WrapUpTime int `json:"wrap_up_time,omitempty"` Numbers *[]Number `json:"numbers,omitempty"` }
type UserAvailabilitiesResponse ¶
type UserAvailabilitiesResponse struct { Meta *GenericResponseMeta `json:"meta,omitempty"` Users *[]UserAvailability `json:"users,omitempty"` }
type UserAvailability ¶
type UserQueries ¶
type UserQueries struct{}
func (UserQueries) NewListUsers ¶
func (pq UserQueries) NewListUsers() *ListUsersQueryParams
Creates Query parameters for 'List'
func (UserQueries) NewListUsersAvailability ¶
func (pq UserQueries) NewListUsersAvailability() *ListUsersAvailabilityQueryParams
Creates Query parameters for 'List'
type UserResponse ¶
type UserResponse struct {
User *User `json:"user,omitempty"`
}
type UsersResponse ¶
type UsersResponse struct { Meta *GenericResponseMeta `json:"meta,omitempty"` Users *[]User `json:"users,omitempty"` }
type UsersService ¶
type UsersService service
User service
func (*UsersService) Create ¶
func (service *UsersService) Create(user *CreateUpdateUser) (*UserResponse, *Response, error)
Create a user. Reference: https://developer.aircall.io/api-references/#create-a-user
func (*UsersService) Delete ¶
func (service *UsersService) Delete(userID int) (*Response, error)
Delete a user. Reference: https://developer.aircall.io/api-references/#delete-a-user
func (*UsersService) DialNumber ¶
func (service *UsersService) DialNumber(userID int, call *NewUserCall) (*Response, error)
Dial a phone number in the phone. Reference: https://developer.aircall.io/api-references/#dial-a-phone-number-in-the-phone
func (*UsersService) Get ¶
func (service *UsersService) Get(userID int) (*UserResponse, *Response, error)
Get a user. Reference: https://developer.aircall.io/api-references/#retrieve-a-user
func (*UsersService) GetAvailability ¶
func (service *UsersService) GetAvailability(userID int) (*UserAvailability, *Response, error)
Get a user availability. Reference: https://developer.aircall.io/api-references/#check-availability-of-a-user
func (*UsersService) List ¶
func (service *UsersService) List(opts *ListUsersQueryParams) (*UsersResponse, *Response, error)
List users. Reference: https://developer.aircall.io/api-references/#list-all-users
func (*UsersService) ListAvailabilities ¶
func (service *UsersService) ListAvailabilities(opts *ListUsersAvailabilityQueryParams) (*UserAvailabilitiesResponse, *Response, error)
List users availabilies. Reference: https://developer.aircall.io/api-references/#retrieve-list-of-users-availability
func (*UsersService) Query ¶
func (service *UsersService) Query() *UserQueries
Create Query parameters for accounts routes.
func (*UsersService) StartOutboundCall ¶
func (service *UsersService) StartOutboundCall(userID int, call *NewUserCall) (*Response, error)
Start an outbound call. Reference: https://developer.aircall.io/api-references/#start-an-outbound-call
func (*UsersService) Update ¶
func (service *UsersService) Update(userID int, user *CreateUpdateUser) (*UserResponse, *Response, error)
Update a user. Reference: https://developer.aircall.io/api-references/#update-a-user
type Webhook ¶
type Webhook struct { WebhookID string `json:"webhook_id,omitempty"` DirectLink string `json:"direct_link,omitempty"` CreatedAt interface{} `json:"created_at,omitempty"` URL string `json:"url,omitempty"` Active bool `json:"active,omitempty"` Token string `json:"token,omitempty"` Events *[]string `json:"events,omitempty"` }
type WebhookQueries ¶
type WebhookQueries struct{}
func (WebhookQueries) NewListWebhooks ¶
func (pq WebhookQueries) NewListWebhooks() *ListWebhooksQueryParams
Creates Query parameters for 'ListContacts'
type WebhookResponse ¶
type WebhookResponse struct {
Webhook *Webhook `json:"webhook,omitempty"`
}
type WebhookService ¶
type WebhookService service
Webhook service
func (*WebhookService) Create ¶
func (service *WebhookService) Create(webhook *CreateUpdateWebhook) (*WebhookResponse, *Response, error)
Create a webhook. Reference: https://developer.aircall.io/api-references/#create-a-webhook
func (*WebhookService) Delete ¶
func (service *WebhookService) Delete(webhookID string) (*Response, error)
Delete a webhook. Reference: https://developer.aircall.io/api-references/#delete-a-webhook
func (*WebhookService) Get ¶
func (service *WebhookService) Get(webhookID string) (*WebhookResponse, *Response, error)
Get a webhook. Reference: https://developer.aircall.io/api-references/#retrieve-a-webhook
func (*WebhookService) List ¶
func (service *WebhookService) List(opts *ListWebhooksQueryParams) (*WebhooksResponse, *Response, error)
List webhooks. Reference: https://developer.aircall.io/api-references/#list-all-webhooks
func (*WebhookService) Query ¶
func (service *WebhookService) Query() *WebhookQueries
Create Query parameters for accounts routes.
func (*WebhookService) Update ¶
func (service *WebhookService) Update(webhookID string, webhook *CreateUpdateWebhook) (*WebhookResponse, *Response, error)
Update a webhook. Reference: https://developer.aircall.io/api-references/#update-a-webhook
type WebhooksResponse ¶
type WebhooksResponse struct { Meta *GenericResponseMeta `json:"meta,omitempty"` Webhooks *[]Webhook `json:"webhooks,omitempty"` }