Documentation ¶
Index ¶
- Constants
- Variables
- func ComputeSignature(authToken, uri string, params map[string]string) string
- func ComputeSignatureV2(authToken, uri string, nonce string) string
- func ComputeSignatureV3(authToken, uri, method string, nonce string, params map[string]string) string
- func Find(val string, slice []string) bool
- func GenerateUrl(uri string, params map[string]string, method string) string
- func GetSortedQueryParamString(params map[string]string, queryParams bool) string
- func Headers(headers map[string]string) string
- func MakeMPCId(MpcUuid string, FriendlyName string) string
- func MultipleValidIntegers(paramname string, paramvalue interface{}, lowerbound int, upperbound int)
- func Numbers(numbers ...string) string
- func ValidateSignature(authToken, uri string, params map[string]string, signature string) bool
- func ValidateSignatureV2(uri string, nonce string, signature string, authToken string) bool
- func ValidateSignatureV3(uri, nonce, method, signature, authToken string, params ...map[string]string) bool
- type Account
- type AccountService
- type AccountUpdateParams
- type Application
- type ApplicationCreateParams
- type ApplicationCreateResponseBody
- type ApplicationDeleteParams
- type ApplicationList
- type ApplicationListParams
- type ApplicationService
- func (service *ApplicationService) Create(params ApplicationCreateParams) (response *ApplicationCreateResponseBody, err error)
- func (service *ApplicationService) Delete(appId string, data ...ApplicationDeleteParams) (err error)
- func (service *ApplicationService) Get(appId string) (response *Application, err error)
- func (service *ApplicationService) List(params ApplicationListParams) (response *ApplicationList, err error)
- func (service *ApplicationService) Update(appId string, params ApplicationUpdateParams) (response *ApplicationUpdateResponse, err error)
- type ApplicationUpdateParams
- type ApplicationUpdateResponse
- type BaseClient
- type BaseListMediaResponse
- type BaseListPPKResponse
- type BaseListParams
- type BaseListResponse
- type BaseResource
- type BaseResourceInterface
- type BaseResponse
- type BuyPhoneNumberParam
- type Call
- type CallAddParticipant
- type CallCreateParams
- type CallCreateResponse
- type CallDTMFParams
- type CallDTMFResponseBody
- type CallFeedbackCreateResponse
- type CallFeedbackParams
- type CallFeedbackService
- type CallListParams
- type CallListResponse
- type CallPlayParams
- type CallPlayResponse
- type CallRecordParams
- type CallRecordResponse
- type CallService
- func (service *CallService) CancelRequest(requestId string) (err error)
- func (service *CallService) Create(params CallCreateParams) (response *CallCreateResponse, err error)
- func (service *CallService) Delete(CallId string) (err error)
- func (service *CallService) Get(CallId string) (response *Call, err error)
- func (service *CallService) List(params CallListParams) (response *CallListResponse, err error)
- func (service *CallService) Play(callId string, params CallPlayParams) (response *CallPlayResponse, err error)
- func (service *CallService) Record(callId string, params CallRecordParams) (response *CallRecordResponse, err error)
- func (service *CallService) SendDigits(callId string, params CallDTMFParams) (response *CallDTMFResponseBody, err error)
- func (service *CallService) Speak(callId string, params CallSpeakParams) (response *CallSpeakResponse, err error)
- func (service *CallService) StopPlaying(callId string) (err error)
- func (service *CallService) StopRecording(callId string) (err error)
- func (service *CallService) StopSpeaking(callId string) (err error)
- func (service *CallService) Update(CallId string, params CallUpdateParams) (response *CallUpdateResponse, err error)
- type CallSpeakParams
- type CallSpeakResponse
- type CallUpdateParams
- type CallUpdateResponse
- type Carrier
- type Client
- type ClientOptions
- type ComplianceApplicationListParams
- type ComplianceApplicationResponse
- type ComplianceApplicationService
- func (service *ComplianceApplicationService) Create(params CreateComplianceApplicationParams) (response *ComplianceApplicationResponse, err error)
- func (service *ComplianceApplicationService) Delete(complianceApplicationId string) (err error)
- func (service *ComplianceApplicationService) Get(complianceApplicationId string) (response *ComplianceApplicationResponse, err error)
- func (service *ComplianceApplicationService) List(params ComplianceApplicationListParams) (response *ListComplianceApplicationResponse, err error)
- func (service *ComplianceApplicationService) Submit(complianceApplicationId string) (response *SubmitComplianceApplicationResponse, err error)
- func (service *ComplianceApplicationService) Update(params UpdateComplianceApplicationParams) (response *UpdateComplianceApplicationResponse, err error)
- type ComplianceDocumentListParams
- type ComplianceDocumentService
- func (service *ComplianceDocumentService) Create(params CreateComplianceDocumentParams) (response *GetComplianceDocumentResponse, err error)
- func (service *ComplianceDocumentService) Delete(complianceDocumentId string) (err error)
- func (service *ComplianceDocumentService) Get(complianceDocumentId string) (response *GetComplianceDocumentResponse, err error)
- func (service *ComplianceDocumentService) List(params ComplianceDocumentListParams) (response *ListComplianceDocumentResponse, err error)
- func (service *ComplianceDocumentService) Update(params UpdateComplianceDocumentParams) (response *UpdateComplianceDocumentResponse, err error)
- type ComplianceDocumentTypeService
- type ComplianceRequirementService
- type Conference
- type ConferenceIDListResponseBody
- type ConferenceMemberActionResponse
- type ConferenceMemberSpeakParams
- type ConferenceRecordParams
- type ConferenceRecordResponseBody
- type ConferenceService
- func (service *ConferenceService) Delete(ConferenceId string) (err error)
- func (service *ConferenceService) DeleteAll() (err error)
- func (service *ConferenceService) Get(ConferenceId string) (response *Conference, err error)
- func (service *ConferenceService) IDList() (response *ConferenceIDListResponseBody, err error)
- func (service *ConferenceService) MemberDeaf(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
- func (service *ConferenceService) MemberHangup(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
- func (service *ConferenceService) MemberKick(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
- func (service *ConferenceService) MemberMute(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
- func (service *ConferenceService) MemberPlay(conferenceId, memberId, url string) (response *ConferenceMemberActionResponse, err error)
- func (service *ConferenceService) MemberPlayStop(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
- func (service *ConferenceService) MemberSpeak(conferenceId, memberId string, params ConferenceMemberSpeakParams) (response *ConferenceMemberActionResponse, err error)
- func (service *ConferenceService) MemberSpeakStop(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
- func (service *ConferenceService) MemberUndeaf(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
- func (service *ConferenceService) MemberUnmute(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
- func (service *ConferenceService) Record(ConferenceId string, Params ConferenceRecordParams) (response *ConferenceRecordResponseBody, err error)
- func (service *ConferenceService) RecordStop(ConferenceId string) (err error)
- type ConferenceSpeakParams
- type ConferenceSpeakResponseBody
- type Country
- type CreateComplianceApplicationParams
- type CreateComplianceDocumentParams
- type CreateEndUserResponse
- type EndUserGetResponse
- type EndUserListParams
- type EndUserListResponse
- type EndUserParams
- type EndUserService
- func (service *EndUserService) Create(params EndUserParams) (response *CreateEndUserResponse, err error)
- func (service *EndUserService) Delete(endUserId string) (err error)
- func (service *EndUserService) Get(endUserId string) (response *EndUserGetResponse, err error)
- func (service *EndUserService) List(params EndUserListParams) (response *EndUserListResponse, err error)
- func (service *EndUserService) Update(params UpdateEndUserParams) (response *UpdateEndUserResponse, err error)
- type Endpoint
- type EndpointCreateParams
- type EndpointCreateResponse
- type EndpointListParams
- type EndpointListResponse
- type EndpointService
- func (service *EndpointService) Create(params EndpointCreateParams) (response *EndpointCreateResponse, err error)
- func (service *EndpointService) Delete(endpointId string) (err error)
- func (service *EndpointService) Get(endpointId string) (response *Endpoint, err error)
- func (service *EndpointService) List(params EndpointListParams) (response *EndpointListResponse, err error)
- func (service *EndpointService) Update(endpointId string, params EndpointUpdateParams) (response *EndpointUpdateResponse, err error)
- type EndpointUpdateParams
- type EndpointUpdateResponse
- type Files
- type FindShortCodeResponse
- type FindTollfreeResponse
- type GetComplianceDocumentResponse
- type GetComplianceDocumentTypeResponse
- type GetComplianceRequirementResponse
- type ListComplianceApplicationResponse
- type ListComplianceDocumentResponse
- type ListComplianceDocumentTypeResponse
- type ListComplianceRequirementParams
- type ListMPCMeta
- type LiveCall
- type LiveCallFilters
- type LiveCallIDListResponse
- type LiveCallService
- type LookupError
- type LookupParams
- type LookupResponse
- type LookupService
- type MMSMedia
- type MPCUpdateResponse
- type Media
- type MediaDeleteResponse
- type MediaListParams
- type MediaListResponseBody
- type MediaMeta
- type MediaResponseBody
- type MediaService
- type MediaUpload
- type MediaUploadResponse
- type Member
- type Message
- type MessageCreateParams
- type MessageCreateResponseBody
- type MessageList
- type MessageListParams
- type MessageService
- func (service *MessageService) Create(params MessageCreateParams) (response *MessageCreateResponseBody, err error)
- func (service *MessageService) Get(messageUuid string) (response *Message, err error)
- func (service *MessageService) List(params MessageListParams) (response *MessageList, err error)
- func (service *MessageService) ListMedia(messageUuid string) (response *MediaListResponseBody, err error)
- type Meta
- type MultiPartyCallAddParticipantParams
- type MultiPartyCallAddParticipantResponse
- type MultiPartyCallBasicParams
- type MultiPartyCallGetResponse
- type MultiPartyCallListParams
- type MultiPartyCallListParticipantParams
- type MultiPartyCallListParticipantsResponse
- type MultiPartyCallListResponse
- type MultiPartyCallParticipant
- type MultiPartyCallParticipantParams
- type MultiPartyCallService
- func (service *MultiPartyCallService) AddParticipant(basicParams MultiPartyCallBasicParams, ...) (response *MultiPartyCallAddParticipantResponse, err error)
- func (service *MultiPartyCallService) Get(basicParams MultiPartyCallBasicParams) (response *MultiPartyCallGetResponse, err error)
- func (service *MultiPartyCallService) GetParticipant(basicParams MultiPartyCallParticipantParams) (response *MultiPartyCallParticipant, err error)
- func (service *MultiPartyCallService) KickParticipant(basicParams MultiPartyCallParticipantParams) (err error)
- func (service *MultiPartyCallService) List(params MultiPartyCallListParams) (response *MultiPartyCallListResponse, err error)
- func (service *MultiPartyCallService) ListParticipants(basicParams MultiPartyCallBasicParams, ...) (response *MultiPartyCallListParticipantsResponse, err error)
- func (service *MultiPartyCallService) PauseParticipantRecording(basicParams MultiPartyCallParticipantParams) (err error)
- func (service *MultiPartyCallService) PauseRecording(basicParams MultiPartyCallBasicParams) (err error)
- func (service *MultiPartyCallService) ResumeParticipantRecording(basicParams MultiPartyCallParticipantParams) (err error)
- func (service *MultiPartyCallService) ResumeRecording(basicParams MultiPartyCallBasicParams) (err error)
- func (service *MultiPartyCallService) Start(basicParams MultiPartyCallBasicParams) (err error)
- func (service *MultiPartyCallService) StartParticipantRecording(basicParams MultiPartyCallParticipantParams, ...) (response *MultiPartyCallStartRecordingResponse, err error)
- func (service *MultiPartyCallService) StartRecording(basicParams MultiPartyCallBasicParams, ...) (response *MultiPartyCallStartRecordingResponse, err error)
- func (service *MultiPartyCallService) Stop(basicParams MultiPartyCallBasicParams) (err error)
- func (service *MultiPartyCallService) StopParticipantRecording(basicParams MultiPartyCallParticipantParams) (err error)
- func (service *MultiPartyCallService) StopRecording(basicParams MultiPartyCallBasicParams) (err error)
- func (service *MultiPartyCallService) UpdateParticipant(basicParams MultiPartyCallParticipantParams, ...) (response *MultiPartyCallUpdateParticipantResponse, err error)
- type MultiPartyCallStartRecordingParams
- type MultiPartyCallStartRecordingResponse
- type MultiPartyCallUpdateParticipantParams
- type MultiPartyCallUpdateParticipantResponse
- type Node
- type NodeActionResponse
- type Number
- type NumberCreateParams
- type NumberCreateResponse
- type NumberDeleteResponse
- type NumberFormat
- type NumberListParams
- type NumberListResponse
- type NumberPoolResponse
- type NumberPriority
- type NumberRemoveParams
- type NumberResponse
- type NumberService
- func (service *NumberService) Create(params NumberCreateParams) (response *NumberCreateResponse, err error)
- func (service *NumberService) Delete(NumberId string) (err error)
- func (service *NumberService) Get(NumberId string) (response *Number, err error)
- func (service *NumberService) List(params NumberListParams) (response *NumberListResponse, err error)
- func (service *NumberService) Update(NumberId string, params NumberUpdateParams) (response *NumberUpdateResponse, err error)
- type NumberUpdateParams
- type NumberUpdateResponse
- type PPKMeta
- type Phlo
- type PhloClient
- type PhloMultiPartyCall
- func (self *PhloMultiPartyCall) Call(params PhloMultiPartyCallActionPayload) (*NodeActionResponse, error)
- func (self *PhloMultiPartyCall) ColdTransfer(params PhloMultiPartyCallActionPayload) (response *NodeActionResponse, err error)
- func (self *PhloMultiPartyCall) Member(memberID string) (response *PhloMultiPartyCallMember)
- func (self *PhloMultiPartyCall) WarmTransfer(params PhloMultiPartyCallActionPayload) (response *NodeActionResponse, err error)
- type PhloMultiPartyCallActionPayload
- type PhloMultiPartyCallMember
- func (self *PhloMultiPartyCallMember) AbortTransfer() (*NodeActionResponse, error)
- func (service *PhloMultiPartyCallMember) HangUp() (*NodeActionResponse, error)
- func (service *PhloMultiPartyCallMember) Hold() (*NodeActionResponse, error)
- func (service *PhloMultiPartyCallMember) ResumeCall() (*NodeActionResponse, error)
- func (service *PhloMultiPartyCallMember) UnHold() (*NodeActionResponse, error)
- func (service *PhloMultiPartyCallMember) VoiceMailDrop() (*NodeActionResponse, error)
- type PhloMultiPartyCallMemberActionPayload
- type PhloRun
- type Phlos
- type PhoneNumber
- type PhoneNumberCreateParams
- type PhoneNumberCreateResponse
- type PhoneNumberListParams
- type PhoneNumberListResponse
- type PhoneNumberService
- type Plan
- type PowerackCreateParams
- type PowerackUpdateParams
- type Powerpack
- type PowerpackAddNumberOptions
- type PowerpackCreateResponseBody
- type PowerpackDeleteParams
- type PowerpackDeleteResponse
- type PowerpackFindNumberOptions
- type PowerpackList
- type PowerpackListParams
- type PowerpackPhoneResponseBody
- type PowerpackResponse
- type PowerpackSearchParam
- type PowerpackService
- func (service *PowerpackService) AddNumberWithOptions(number string, params PowerpackAddNumberOptions) (response *NumberResponse, err error)
- func (service *PowerpackService) Add_number(number string) (response *NumberResponse, err error)
- func (service *PowerpackService) Add_tollfree(tollfree string) (response *NumberResponse, err error)
- func (service *PowerpackService) Buy_add_number(phoneParam BuyPhoneNumberParam) (response *NumberResponse, err error)
- func (service *PowerpackService) Count_numbers(params PowerpackSearchParam) (count int, err error)
- func (service *PowerpackService) Create(params PowerackCreateParams) (response *PowerpackCreateResponseBody, err error)
- func (service *PowerpackService) Delete(params PowerpackDeleteParams) (response *PowerpackDeleteResponse, err error)
- func (service *PowerpackService) FindNumbersWithOptions(number string, params PowerpackFindNumberOptions) (response *NumberResponse, err error)
- func (service *PowerpackService) Find_numbers(number string) (response *NumberResponse, err error)
- func (service *PowerpackService) Find_shortcode(shortcode string) (response *FindShortCodeResponse, err error)
- func (service *PowerpackService) Find_tollfree(tollfree string) (response *FindTollfreeResponse, err error)
- func (service *PowerpackService) Get(powerpackUUID string) (response *PowerpackService, err error)
- func (service *PowerpackService) List(params PowerpackListParams) (response *PowerpackList, err error)
- func (service *PowerpackService) List_numbers(params PowerpackSearchParam) (response *PowerpackPhoneResponseBody, err error)
- func (service *PowerpackService) List_shortcodes() (response *ShortCodeResponse, err error)
- func (service *PowerpackService) List_tollfree() (response *TollfreeResponse, err error)
- func (service *PowerpackService) Remove_number(number string, param NumberRemoveParams) (response *NumberDeleteResponse, err error)
- func (service *PowerpackService) Remove_shortcode(shortcode string) (response *ShortcodeDeleteResponse, err error)
- func (service *PowerpackService) Remove_tollfree(tollfree string, param NumberRemoveParams) (response *TollfreeDeleteResponse, err error)
- func (service *PowerpackService) Update(params PowerackUpdateParams) (response *PowerpackUpdateResponse, err error)
- type PowerpackUpdateResponse
- type Pricing
- type PricingGetParams
- type PricingService
- type Priority
- type QueuedCall
- type QueuedCallIDListResponse
- type QueuedCallService
- type Recording
- type RecordingListParams
- type RecordingListResponse
- type RecordingService
- type RentNumber
- type ShortCode
- type ShortCodeResponse
- type ShortcodeDeleteResponse
- type Subaccount
- type SubaccountCreateParams
- type SubaccountCreateResponse
- type SubaccountDeleteParams
- type SubaccountList
- type SubaccountListParams
- type SubaccountService
- func (service *SubaccountService) Create(params SubaccountCreateParams) (response *SubaccountCreateResponse, err error)
- func (service *SubaccountService) Delete(subauthId string, data ...SubaccountDeleteParams) (err error)
- func (service *SubaccountService) Get(subauthId string) (response *Subaccount, err error)
- func (service *SubaccountService) List(params SubaccountListParams) (response *SubaccountList, err error)
- func (service *SubaccountService) Update(subauthId string, params SubaccountUpdateParams) (response *SubaccountUpdateResponse, err error)
- type SubaccountUpdateParams
- type SubaccountUpdateResponse
- type SubmitComplianceApplicationResponse
- type Tollfree
- type TollfreeDeleteResponse
- type TollfreeResponse
- type UpdateComplianceApplicationParams
- type UpdateComplianceApplicationResponse
- type UpdateComplianceDocumentParams
- type UpdateComplianceDocumentResponse
- type UpdateEndUserParams
- type UpdateEndUserResponse
Constants ¶
const ( SMS = "sms" MMS = "mms" )
const ABORT_TRANSFER = "abort_transfer"
const CallInsightsBaseURL = "stats.plivo.com"
const CallInsightsFeedbackPath = "v1/Call/%s/Feedback/"
const CallInsightsParams = "call_insights_params"
const CallInsightsRequestPath = "call_insights_feedback_path"
const HANGUP = "hangup"
const HOLD = "hold"
const RESUME_CALL = "resume_call"
const UNHOLD = "unhold"
const VOICEMAIL_DROP = "voicemail_drop"
Variables ¶
var HttpsScheme = "https"
Functions ¶
func ComputeSignature ¶
func ComputeSignatureV2 ¶
func ComputeSignatureV3 ¶
func MultipleValidIntegers ¶
func ValidateSignature ¶
func ValidateSignatureV2 ¶
Types ¶
type Account ¶
type Account struct { AccountType string `json:"account_type,omitempty" url:"account_type,omitempty"` // The type of your Plivo account. All accounts with funds are standard accounts. If your account is on free trial, this attribute will return developer. Address string `json:"address,omitempty" url:"address,omitempty"` // The postal address of the account which will be reflected in the invoices. ApiID string `json:"api_id,omitempty" url:"api_id,omitempty"` AuthID string `json:"auth_id,omitempty" url:"auth_id,omitempty"` // The auth id of the account. AutoRecharge bool `json:"auto_recharge,omitempty" url:"auto_recharge,omitempty"` // Auto recharge settings associated with the account. If this value is true, we will recharge your account if the credits fall below a certain threshold. BillingMode string `json:"billing_mode,omitempty" url:"billing_mode,omitempty"` // The billing mode of the account. Can be prepaid or postpaid. CashCredits string `json:"cash_credits,omitempty" url:"cash_credits,omitempty"` // Credits of the account. City string `json:"city,omitempty" url:"city,omitempty"` // The city of the account. Name string `json:"name,omitempty" url:"name,omitempty"` // The name of the account holder. ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` State string `json:"state,omitempty" url:"state,omitempty"` // The state of the account holder. Timezone string `json:"timezone,omitempty" url:"timezone,omitempty"` // The timezone of the account. }
type AccountService ¶
type AccountService struct {
// contains filtered or unexported fields
}
func (*AccountService) Get ¶
func (service *AccountService) Get() (response *Account, err error)
func (*AccountService) Update ¶
func (service *AccountService) Update(params AccountUpdateParams) (response *SubaccountUpdateResponse, err error)
type AccountUpdateParams ¶
type AccountUpdateParams struct { Name string `json:"name,omitempty" url:"name,omitempty"` // Name of the account holder or business. Address string `json:"address,omitempty" url:"address,omitempty"` // City of the account holder. City string `json:"city,omitempty" url:"city,omitempty"` // Address of the account holder. }
type Application ¶
type Application struct { FallbackMethod string `json:"fallback_method,omitempty" url:"fallback_method,omitempty"` DefaultApp bool `json:"default_app,omitempty" url:"default_app,omitempty"` AppName string `json:"app_name,omitempty" url:"app_name,omitempty"` ProductionApp bool `json:"production_app,omitempty" url:"production_app,omitempty"` AppID string `json:"app_id,omitempty" url:"app_id,omitempty"` HangupURL string `json:"hangup_url,omitempty" url:"hangup_url,omitempty"` AnswerURL string `json:"answer_url,omitempty" url:"answer_url,omitempty"` MessageURL string `json:"message_url,omitempty" url:"message_url,omitempty"` ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` HangupMethod string `json:"hangup_method,omitempty" url:"hangup_method,omitempty"` MessageMethod string `json:"message_method,omitempty" url:"message_method,omitempty"` FallbackAnswerURL string `json:"fallback_answer_url,omitempty" url:"fallback_answer_url,omitempty"` AnswerMethod string `json:"answer_method,omitempty" url:"answer_method,omitempty"` ApiID string `json:"api_id,omitempty" url:"api_id,omitempty"` LogIncomingMessages bool `json:"log_incoming_messages,omitempty" url:"log_incoming_messages,omitempty"` PublicURI bool `json:"public_uri,omitempty" url:"public_uri,omitempty"` // Additional fields for Modify calls DefaultNumberApp bool `json:"default_number_app,omitempty" url:"default_number_app,omitempty"` DefaultEndpointApp bool `json:"default_endpoint_app,omitempty" url:"default_endpoint_app,omitempty"` }
func (Application) ID ¶
func (self Application) ID() string
type ApplicationCreateParams ¶
type ApplicationCreateParams struct { FallbackMethod string `json:"fallback_method,omitempty" url:"fallback_method,omitempty"` DefaultApp bool `json:"default_app,omitempty" url:"default_app,omitempty"` AppName string `json:"app_name,omitempty" url:"app_name,omitempty"` ProductionApp bool `json:"production_app,omitempty" url:"production_app,omitempty"` AppID string `json:"app_id,omitempty" url:"app_id,omitempty"` HangupURL string `json:"hangup_url,omitempty" url:"hangup_url,omitempty"` AnswerURL string `json:"answer_url,omitempty" url:"answer_url,omitempty"` MessageURL string `json:"message_url,omitempty" url:"message_url,omitempty"` ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` HangupMethod string `json:"hangup_method,omitempty" url:"hangup_method,omitempty"` MessageMethod string `json:"message_method,omitempty" url:"message_method,omitempty"` FallbackAnswerURL string `json:"fallback_answer_url,omitempty" url:"fallback_answer_url,omitempty"` AnswerMethod string `json:"answer_method,omitempty" url:"answer_method,omitempty"` ApiID string `json:"api_id,omitempty" url:"api_id,omitempty"` LogIncomingMessages bool `json:"log_incoming_messages,omitempty" url:"log_incoming_messages,omitempty"` PublicURI bool `json:"public_uri,omitempty" url:"public_uri,omitempty"` // Additional fields for Modify calls DefaultNumberApp bool `json:"default_number_app,omitempty" url:"default_number_app,omitempty"` DefaultEndpointApp bool `json:"default_endpoint_app,omitempty" url:"default_endpoint_app,omitempty"` }
TODO Verify against docs
type ApplicationCreateResponseBody ¶
type ApplicationCreateResponseBody struct { Message string `json:"message" url:"message"` ApiID string `json:"api_id" url:"api_id"` AppID string `json:"app_id" url:"app_id"` }
Stores response for Create call
type ApplicationDeleteParams ¶
type ApplicationList ¶
type ApplicationList struct { BaseListResponse Objects []Application `json:"objects" url:"objects"` }
type ApplicationListParams ¶
type ApplicationService ¶
type ApplicationService struct {
// contains filtered or unexported fields
}
func (*ApplicationService) Create ¶
func (service *ApplicationService) Create(params ApplicationCreateParams) (response *ApplicationCreateResponseBody, err error)
func (*ApplicationService) Delete ¶
func (service *ApplicationService) Delete(appId string, data ...ApplicationDeleteParams) (err error)
func (*ApplicationService) Get ¶
func (service *ApplicationService) Get(appId string) (response *Application, err error)
func (*ApplicationService) List ¶
func (service *ApplicationService) List(params ApplicationListParams) (response *ApplicationList, err error)
func (*ApplicationService) Update ¶
func (service *ApplicationService) Update(appId string, params ApplicationUpdateParams) (response *ApplicationUpdateResponse, err error)
type ApplicationUpdateParams ¶
type ApplicationUpdateParams ApplicationCreateParams
TODO Check against docs
type ApplicationUpdateResponse ¶
type ApplicationUpdateResponse BaseResponse
type BaseClient ¶
type BaseClient struct { AuthId string AuthToken string BaseUrl *url.URL RequestInterceptor func(request *http.Request) ResponseInterceptor func(response *http.Response) // contains filtered or unexported fields }
func (*BaseClient) ExecuteRequest ¶
func (client *BaseClient) ExecuteRequest(request *http.Request, body interface{}, extra ...map[string]interface{}) (err error)
func (*BaseClient) NewRequest ¶
type BaseListMediaResponse ¶
type BaseListPPKResponse ¶
type BaseListParams ¶
type BaseListResponse ¶
type BaseResource ¶
type BaseResource struct {
// contains filtered or unexported fields
}
type BaseResourceInterface ¶
type BaseResourceInterface struct {
// contains filtered or unexported fields
}
type BaseResponse ¶
type BuyPhoneNumberParam ¶
type Call ¶
type Call struct { AnswerTime string `json:"answer_time,omitempty" url:"answer_time,omitempty"` BillDuration int64 `json:"bill_duration,omitempty" url:"bill_duration,omitempty"` BilledDuration int64 `json:"billed_duration,omitempty" url:"billed_duration,omitempty"` CallDirection string `json:"call_direction,omitempty" url:"call_direction,omitempty"` CallDuration int64 `json:"call_duration,omitempty" url:"call_duration,omitempty"` CallState string `json:"call_state,omitempty" url:"call_state,omitempty"` CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` ConferenceUUID string `json:"conference_uuid,omitempty"` EndTime string `json:"end_time,omitempty" url:"end_time,omitempty"` FromNumber string `json:"from_number,omitempty" url:"from_number,omitempty"` HangupCauseCode int64 `json:"hangup_cause_code,omitempty" url:"hangup_cause_code,omitempty"` HangupCauseName string `json:"hangup_cause_name,omitempty" url:"hangup_cause_name,omitempty"` HangupSource string `json:"hangup_source,omitempty" url:"hangup_source,omitempty"` InitiationTime string `json:"initiation_time,omitempty" url:"initiation_time,omitempty"` ParentCallUUID string `json:"parent_call_uuid,omitempty" url:"parent_call_uuid,omitempty"` ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` ToNumber string `json:"to_number,omitempty" url:"to_number,omitempty"` TotalAmount string `json:"total_amount,omitempty" url:"total_amount,omitempty"` TotalRate string `json:"total_rate,omitempty" url:"total_rate,omitempty"` StirVerification string `json:"stir_verification,omitempty" url:"stir_verification,omitempty"` VoiceNetworkGroup string `json:"voice_network_group,omitempty" url:"voice_network_group,omitempty"` }
type CallAddParticipant ¶
type CallCreateParams ¶
type CallCreateParams struct { // Required parameters. From string `json:"from,omitempty" url:"from,omitempty"` To string `json:"to,omitempty" url:"to,omitempty"` AnswerURL string `json:"answer_url,omitempty" url:"answer_url,omitempty"` // Optional parameters. AnswerMethod string `json:"answer_method,omitempty" url:"answer_method,omitempty"` RingURL string `json:"ring_url,omitempty" url:"ring_url,omitempty"` RingMethod string `json:"ring_method,omitempty" url:"ring_method,omitempty"` HangupURL string `json:"hangup_url,omitempty" url:"hangup_url,omitempty"` HangupMethod string `json:"hangup_method,omitempty" url:"hangup_method,omitempty"` FallbackURL string `json:"fallback_url,omitempty" url:"fallback_url,omitempty"` FallbackMethod string `json:"fallback_method,omitempty" url:"fallback_method,omitempty"` CallerName string `json:"caller_name,omitempty" url:"caller_name,omitempty"` SendDigits string `json:"send_digits,omitempty" url:"send_digits,omitempty"` SendOnPreanswer bool `json:"send_on_preanswer,omitempty" url:"send_on_preanswer,omitempty"` TimeLimit int64 `json:"time_limit,omitempty" url:"time_limit,omitempty"` HangupOnRing int64 `json:"hangup_on_ring,omitempty" url:"hangup_on_ring,omitempty"` MachineDetection string `json:"machine_detection,omitempty" url:"machine_detection,omitempty"` MachineDetectionTime int64 `json:"machine_detection_time,omitempty" url:"machine_detection_time,omitempty"` SipHeaders string `json:"sip_headers,omitempty" url:"sip_headers,omitempty"` RingTimeout int64 `json:"ring_timeout,omitempty" url:"ring_timeout,omitempty"` }
type CallCreateResponse ¶
type CallCreateResponse struct { Message string `json:"message" url:"message"` ApiID string `json:"api_id" url:"api_id"` RequestUUID interface{} `json:"request_uuid" url:"request_uuid"` }
Stores response for making a call.
type CallDTMFParams ¶
type CallDTMFResponseBody ¶
type CallFeedbackParams ¶
type CallFeedbackService ¶
type CallFeedbackService struct {
// contains filtered or unexported fields
}
func (*CallFeedbackService) Create ¶
func (service *CallFeedbackService) Create(params CallFeedbackParams) (response *CallFeedbackCreateResponse, err error)
type CallListParams ¶
type CallListParams struct { // Query parameters. Subaccount string `json:"subaccount,omitempty" url:"subaccount,omitempty"` CallDirection string `json:"call_direction,omitempty" url:"call_direction,omitempty"` FromNumber string `json:"from_number,omitempty" url:"from_number,omitempty"` ToNumber string `json:"to_number,omitempty" url:"to_number,omitempty"` ParentCallUUID string `json:"parent_call_uuid,omitempty" url:"parent_call_uuid,omitempty"` EndTimeEquals string `json:"end_time,omitempty" url:"end_time,omitempty"` HangupCauseCode int64 `json:"hangup_cause_code,omitempty" url:"hangup_cause_code,omitempty"` HangupSource string `json:"hangup_source,omitempty" url:"hangup_source,omitempty"` EndTimeLessThan string `json:"end_time__lt,omitempty" url:"end_time__lt,omitempty"` EndTimeGreaterThan string `json:"end_time__gt,omitempty" url:"end_time__gt,omitempty"` EndTimeLessOrEqual string `json:"end_time__lte,omitempty" url:"end_time__lte,omitempty"` EndTimeGreaterOrEqual string `json:"end_time__gte,omitempty" url:"end_time__gte,omitempty"` BillDurationEquals string `json:"bill_duration,omitempty" url:"bill_duration,omitempty"` BillDurationLessThan string `json:"bill_duration__lt,omitempty" url:"bill_duration__lt,omitempty"` BillDurationGreaterThan string `json:"bill_duration__gt,omitempty" url:"bill_duration__gt,omitempty"` BillDurationLessOrEqual string `json:"bill_duration__lte,omitempty" url:"bill_duration__lte,omitempty"` BillDurationGreaterOrEqual string `json:"bill_duration__gte,omitempty" url:"bill_duration__gte,omitempty"` Limit int64 `json:"limit,omitempty" url:"limit,omitempty"` Offset int64 `json:"offset,omitempty" url:"offset,omitempty"` }
type CallListResponse ¶
type CallPlayParams ¶
type CallPlayResponse ¶
type CallRecordParams ¶
type CallRecordParams struct { TimeLimit int64 `json:"time_limit,omitempty" url:"time_limit,omitempty"` FileFormat string `json:"file_format,omitempty" url:"file_format,omitempty"` TranscriptionType string `json:"transcription_type,omitempty" url:"transcription_type,omitempty"` TranscriptionURL string `json:"transcription_url,omitempty" url:"transcription_url,omitempty"` TranscriptionMethod string `json:"transcription_method,omitempty" url:"transcription_method,omitempty"` CallbackURL string `json:"callback_url,omitempty" url:"callback_url,omitempty"` CallbackMethod string `json:"callback_method,omitempty" url:"callback_method,omitempty"` }
type CallRecordResponse ¶
type CallService ¶
type CallService struct {
// contains filtered or unexported fields
}
func (*CallService) CancelRequest ¶
func (service *CallService) CancelRequest(requestId string) (err error)
func (*CallService) Create ¶
func (service *CallService) Create(params CallCreateParams) (response *CallCreateResponse, err error)
func (*CallService) Delete ¶
func (service *CallService) Delete(CallId string) (err error)
func (*CallService) Get ¶
func (service *CallService) Get(CallId string) (response *Call, err error)
func (*CallService) List ¶
func (service *CallService) List(params CallListParams) (response *CallListResponse, err error)
func (*CallService) Play ¶
func (service *CallService) Play(callId string, params CallPlayParams) (response *CallPlayResponse, err error)
func (*CallService) Record ¶
func (service *CallService) Record(callId string, params CallRecordParams) (response *CallRecordResponse, err error)
func (*CallService) SendDigits ¶
func (service *CallService) SendDigits(callId string, params CallDTMFParams) (response *CallDTMFResponseBody, err error)
func (*CallService) Speak ¶
func (service *CallService) Speak(callId string, params CallSpeakParams) (response *CallSpeakResponse, err error)
func (*CallService) StopPlaying ¶
func (service *CallService) StopPlaying(callId string) (err error)
func (*CallService) StopRecording ¶
func (service *CallService) StopRecording(callId string) (err error)
func (*CallService) StopSpeaking ¶
func (service *CallService) StopSpeaking(callId string) (err error)
func (*CallService) Update ¶
func (service *CallService) Update(CallId string, params CallUpdateParams) (response *CallUpdateResponse, err error)
type CallSpeakParams ¶
type CallSpeakParams struct { Text string `json:"text" url:"text"` Voice string `json:"length,omitempty" url:"length,omitempty"` Language string `json:"language,omitempty" url:"language,omitempty"` Legs string `json:"legs,omitempty" url:"legs,omitempty"` Loop bool `json:"loop,omitempty" url:"loop,omitempty"` Mix bool `json:"mix,omitempty" url:"mix,omitempty"` }
type CallSpeakResponse ¶
type CallUpdateParams ¶
type CallUpdateParams struct { Legs string `json:"legs,omitempty" url:"legs,omitempty"` AlegURL string `json:"aleg_url,omitempty" url:"aleg_url,omitempty"` AlegMethod string `json:"aleg_method,omitempty" url:"aleg_method,omitempty"` BlegURL string `json:"bleg_url,omitempty" url:"bleg_url,omitempty"` BlegMethod string `json:"bleg_method,omitempty" url:"bleg_method,omitempty"` }
type CallUpdateResponse ¶
type Client ¶
type Client struct { BaseClient Messages *MessageService Accounts *AccountService Subaccounts *SubaccountService Applications *ApplicationService Endpoints *EndpointService Numbers *NumberService PhoneNumbers *PhoneNumberService Pricing *PricingService // TODO Rename? Recordings *RecordingService Calls *CallService LiveCalls *LiveCallService QueuedCalls *QueuedCallService Conferences *ConferenceService CallFeedback *CallFeedbackService Powerpack *PowerpackService Media *MediaService Lookup *LookupService EndUsers *EndUserService ComplianceDocuments *ComplianceDocumentService ComplianceDocumentTypes *ComplianceDocumentTypeService ComplianceRequirements *ComplianceRequirementService ComplianceApplications *ComplianceApplicationService MultiPartyCall *MultiPartyCallService }
func NewClient ¶
func NewClient(authId, authToken string, options *ClientOptions) (client *Client, err error)
To set a proxy for all requests, configure the Transport for the HttpClient passed in:
&http.Client{ Transport: &http.Transport{ Proxy: http.ProxyURL("http//your.proxy.here"), }, }
Similarly, to configure the timeout, set it on the HttpClient passed in:
&http.Client{ Timeout: time.Minute, }
type ClientOptions ¶
type ComplianceApplicationListParams ¶
type ComplianceApplicationListParams struct { Limit int `json:"limit,omitempty" url:"limit,omitempty"` Offset int `json:"offset,omitempty" url:"offset,omitempty"` EndUserID string `json:"end_user_id,omitempty" url:"end_user_id,omitempty"` Country string `json:"country,omitempty" url:"country,omitempty"` NumberType string `json:"number_type,omitempty" url:"number_type,omitempty"` EndUserType string `json:"end_user_type,omitempty" url:"end_user_type,omitempty"` Alias string `json:"alias,omitempty" url:"alias,omitempty"` Status string `json:"status,omitempty" url:"status,omitempty"` }
type ComplianceApplicationResponse ¶
type ComplianceApplicationResponse struct { APIID string `json:"api_id"` CreatedAt time.Time `json:"created_at"` ComplianceApplicationID string `json:"compliance_application_id"` Alias string `json:"alias"` Status string `json:"status"` EndUserType string `json:"end_user_type"` CountryIso2 string `json:"country_iso2"` NumberType string `json:"number_type"` EndUserID string `json:"end_user_id"` ComplianceRequirementID string `json:"compliance_requirement_id"` Documents []struct { DocumentID string `json:"document_id"` Name string `json:"name"` DocumentName string `json:"document_name,omitempty"` DocumentTypeID string `json:"document_type_id,omitempty"` DocumentTypeName string `json:"document_type_name,omitempty"` Scope string `json:"scope,omitempty"` } `json:"documents"` }
type ComplianceApplicationService ¶
type ComplianceApplicationService struct {
// contains filtered or unexported fields
}
func (*ComplianceApplicationService) Create ¶
func (service *ComplianceApplicationService) Create(params CreateComplianceApplicationParams) (response *ComplianceApplicationResponse, err error)
func (*ComplianceApplicationService) Delete ¶
func (service *ComplianceApplicationService) Delete(complianceApplicationId string) (err error)
func (*ComplianceApplicationService) Get ¶
func (service *ComplianceApplicationService) Get(complianceApplicationId string) (response *ComplianceApplicationResponse, err error)
func (*ComplianceApplicationService) List ¶
func (service *ComplianceApplicationService) List(params ComplianceApplicationListParams) (response *ListComplianceApplicationResponse, err error)
func (*ComplianceApplicationService) Submit ¶
func (service *ComplianceApplicationService) Submit(complianceApplicationId string) (response *SubmitComplianceApplicationResponse, err error)
func (*ComplianceApplicationService) Update ¶
func (service *ComplianceApplicationService) Update(params UpdateComplianceApplicationParams) (response *UpdateComplianceApplicationResponse, err error)
type ComplianceDocumentListParams ¶
type ComplianceDocumentListParams struct { Limit int `json:"limit,omitempty" url:"limit,omitempty"` Offset int `json:"offset,omitempty" url:"offset,omitempty"` EndUserID string `json:"end_user_id,omitempty" url:"end_user_id,omitempty"` DocumentTypeID string `json:"document_type_id,omitempty" url:"document_type_id,omitempty"` Alias string `json:"alias,omitempty" url:"alias,omitempty"` }
type ComplianceDocumentService ¶
type ComplianceDocumentService struct {
// contains filtered or unexported fields
}
func (*ComplianceDocumentService) Create ¶
func (service *ComplianceDocumentService) Create(params CreateComplianceDocumentParams) (response *GetComplianceDocumentResponse, err error)
func (*ComplianceDocumentService) Delete ¶
func (service *ComplianceDocumentService) Delete(complianceDocumentId string) (err error)
func (*ComplianceDocumentService) Get ¶
func (service *ComplianceDocumentService) Get(complianceDocumentId string) (response *GetComplianceDocumentResponse, err error)
func (*ComplianceDocumentService) List ¶
func (service *ComplianceDocumentService) List(params ComplianceDocumentListParams) (response *ListComplianceDocumentResponse, err error)
func (*ComplianceDocumentService) Update ¶
func (service *ComplianceDocumentService) Update(params UpdateComplianceDocumentParams) (response *UpdateComplianceDocumentResponse, err error)
type ComplianceDocumentTypeService ¶
type ComplianceDocumentTypeService struct {
// contains filtered or unexported fields
}
func (*ComplianceDocumentTypeService) Get ¶
func (service *ComplianceDocumentTypeService) Get(docId string) (response *GetComplianceDocumentTypeResponse, err error)
func (*ComplianceDocumentTypeService) List ¶
func (service *ComplianceDocumentTypeService) List(params BaseListParams) (response *ListComplianceDocumentTypeResponse, err error)
type ComplianceRequirementService ¶
type ComplianceRequirementService struct {
// contains filtered or unexported fields
}
func (*ComplianceRequirementService) Get ¶
func (service *ComplianceRequirementService) Get(complianceRequirementId string) (response *GetComplianceRequirementResponse, err error)
func (*ComplianceRequirementService) List ¶
func (service *ComplianceRequirementService) List(params ListComplianceRequirementParams) (response *GetComplianceRequirementResponse, err error)
type Conference ¶
type Conference struct { ConferenceName string `json:"conference_name,omitempty" url:"conference_name,omitempty"` ConferenceRunTime string `json:"conference_run_time,omitempty" url:"conference_run_time,omitempty"` ConferenceMemberCount string `json:"conference_member_count,omitempty" url:"conference_member_count,omitempty"` Members []Member `json:"members,omitempty" url:"members,omitempty"` }
func (Conference) ID ¶
func (self Conference) ID() string
type ConferenceRecordParams ¶
type ConferenceRecordParams struct { TimeLimit int64 `json:"time_limit,omitempty" url:"time_limit,omitempty"` FileFormat string `json:"file_format,omitempty" url:"file_format,omitempty"` TranscriptionType string `json:"transcription_type,omitempty" url:"transcription_type,omitempty"` TranscriptionUrl string `json:"transcription_url,omitempty" url:"transcription_url,omitempty"` TranscriptionMethod string `json:"transcription_method,omitempty" url:"transcription_method,omitempty"` CallbackUrl string `json:"callback_url,omitempty" url:"callback_url,omitempty"` CallbackMethod string `json:"callback_method,omitempty" url:"callback_method,omitempty"` }
type ConferenceService ¶
type ConferenceService struct {
// contains filtered or unexported fields
}
func (*ConferenceService) Delete ¶
func (service *ConferenceService) Delete(ConferenceId string) (err error)
func (*ConferenceService) DeleteAll ¶
func (service *ConferenceService) DeleteAll() (err error)
func (*ConferenceService) Get ¶
func (service *ConferenceService) Get(ConferenceId string) (response *Conference, err error)
func (*ConferenceService) IDList ¶
func (service *ConferenceService) IDList() (response *ConferenceIDListResponseBody, err error)
func (*ConferenceService) MemberDeaf ¶
func (service *ConferenceService) MemberDeaf(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
func (*ConferenceService) MemberHangup ¶
func (service *ConferenceService) MemberHangup(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
func (*ConferenceService) MemberKick ¶
func (service *ConferenceService) MemberKick(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
func (*ConferenceService) MemberMute ¶
func (service *ConferenceService) MemberMute(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
func (*ConferenceService) MemberPlay ¶
func (service *ConferenceService) MemberPlay(conferenceId, memberId, url string) (response *ConferenceMemberActionResponse, err error)
func (*ConferenceService) MemberPlayStop ¶
func (service *ConferenceService) MemberPlayStop(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
func (*ConferenceService) MemberSpeak ¶
func (service *ConferenceService) MemberSpeak(conferenceId, memberId string, params ConferenceMemberSpeakParams) (response *ConferenceMemberActionResponse, err error)
func (*ConferenceService) MemberSpeakStop ¶
func (service *ConferenceService) MemberSpeakStop(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
func (*ConferenceService) MemberUndeaf ¶
func (service *ConferenceService) MemberUndeaf(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
func (*ConferenceService) MemberUnmute ¶
func (service *ConferenceService) MemberUnmute(conferenceId, memberId string) (response *ConferenceMemberActionResponse, err error)
func (*ConferenceService) Record ¶
func (service *ConferenceService) Record(ConferenceId string, Params ConferenceRecordParams) (response *ConferenceRecordResponseBody, err error)
func (*ConferenceService) RecordStop ¶
func (service *ConferenceService) RecordStop(ConferenceId string) (err error)
type ConferenceSpeakParams ¶
type CreateComplianceApplicationParams ¶
type CreateComplianceApplicationParams struct { ComplianceRequirementId string `json:"compliance_requirement_id,omitempty" url:"compliance_requirement_id,omitempty"` EndUserId string `json:"end_user_id,omitempty" url:"end_user_id,omitempty"` DocumentIds []string `json:"document_ids,omitempty" url:"document_ids, omitempty"` Alias string `json:"alias,omitempty" url:"alias, omitempty"` EndUserType string `json:"end_user_type,omitempty" url:"end_user_type, omitempty"` CountryIso2 string `json:"country_iso2,omitempty" url:"country_iso2, omitempty"` NumberType string `json:"number_type,omitempty" url:"number_type, omitempty"` }
type CreateComplianceDocumentParams ¶
type CreateComplianceDocumentParams struct { File string `json:"file,omitempty"` EndUserID string `json:"end_user_id,omitempty"` DocumentTypeID string `json:"document_type_id,omitempty"` Alias string `json:"alias,omitempty"` LastName string `json:"last_name,omitempty"` FirstName string `json:"first_name,omitempty"` DateOfBirth string `json:"date_of_birth,omitempty"` AddressLine1 string `json:"address_line_1,omitempty"` AddressLine2 string `json:"address_line_2,omitempty"` City string `json:"city,omitempty"` Country string `json:"country,omitempty"` PostalCode string `json:"postal_code,omitempty"` UniqueIdentificationNumber string `json:"unique_identification_number,omitempty"` Nationality string `json:"nationality,omitempty"` PlaceOfBirth string `json:"place_of_birth,omitempty"` DateOfIssue string `json:"date_of_issue,omitempty"` DateOfExpiration string `json:"date_of_expiration,omitempty"` TypeOfUtility string `json:"type_of_utility,omitempty"` BillingId string `json:"billing_id,omitempty"` BillingDate string `json:"billing_date,omitempty"` BusinessName string `json:"business_name,omitempty"` TypeOfId string `json:"type_of_id,omitempty"` SupportPhoneNumber string `json:"support_phone_number,omitempty"` SupportEmail string `json:"support_email,omitempty"` AuthorizedRepresentativeName string `json:"authorized_representative_name,omitempty"` BillDate string `json:"bill_date,omitempty"` BillId string `json:"bill_id,omitempty"` UseCaseDescription string `json:"use_case_description,omitempty"` }
type CreateEndUserResponse ¶
type EndUserGetResponse ¶
type EndUserListParams ¶
type EndUserListParams struct { Limit int `json:"limit,omitempty" url:"limit,omitempty"` Offset int `json:"offset,omitempty" url:"offset,omitempty"` Name string `json:"name,omitempty" url:"name,omitempty"` LastName string `json:"last_name,omitempty" url:"last_name,omitempty"` EndUserType string `json:"end_user_type,omitempty" url:"end_user_type,omitempty"` }
type EndUserListResponse ¶
type EndUserListResponse struct { BaseListResponse Objects []EndUserGetResponse `json:"objects" url:"objects"` }
type EndUserParams ¶
type EndUserService ¶
type EndUserService struct {
// contains filtered or unexported fields
}
func (*EndUserService) Create ¶
func (service *EndUserService) Create(params EndUserParams) (response *CreateEndUserResponse, err error)
func (*EndUserService) Delete ¶
func (service *EndUserService) Delete(endUserId string) (err error)
func (*EndUserService) Get ¶
func (service *EndUserService) Get(endUserId string) (response *EndUserGetResponse, err error)
func (*EndUserService) List ¶
func (service *EndUserService) List(params EndUserListParams) (response *EndUserListResponse, err error)
func (*EndUserService) Update ¶
func (service *EndUserService) Update(params UpdateEndUserParams) (response *UpdateEndUserResponse, err error)
type Endpoint ¶
type Endpoint struct { Alias string `json:"alias,omitempty" url:"alias,omitempty"` EndpointID string `json:"endpoint_id,omitempty" url:"endpoint_id,omitempty"` Password string `json:"password,omitempty" url:"password,omitempty"` ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` SIPURI string `json:"sip_uri,omitempty" url:"sip_uri,omitempty"` Username string `json:"username,omitempty" url:"username,omitempty"` // Optional field for Create call. AppID string `json:"app_id,omitempty" url:"app_id,omitempty"` }
type EndpointCreateParams ¶
type EndpointCreateResponse ¶
type EndpointCreateResponse struct { BaseResponse Alias string `json:"alias,omitempty" url:"alias,omitempty"` EndpointID string `json:"endpoint_id,omitempty" url:"endpoint_id,omitempty"` Username string `json:"username,omitempty" url:"username,omitempty"` }
type EndpointListParams ¶
type EndpointListResponse ¶
type EndpointListResponse struct { BaseListResponse Objects []*Endpoint `json:"objects" url:"objects"` }
type EndpointService ¶
type EndpointService struct {
// contains filtered or unexported fields
}
func (*EndpointService) Create ¶
func (service *EndpointService) Create(params EndpointCreateParams) (response *EndpointCreateResponse, err error)
func (*EndpointService) Delete ¶
func (service *EndpointService) Delete(endpointId string) (err error)
func (*EndpointService) Get ¶
func (service *EndpointService) Get(endpointId string) (response *Endpoint, err error)
func (*EndpointService) List ¶
func (service *EndpointService) List(params EndpointListParams) (response *EndpointListResponse, err error)
func (*EndpointService) Update ¶
func (service *EndpointService) Update(endpointId string, params EndpointUpdateParams) (response *EndpointUpdateResponse, err error)
type EndpointUpdateParams ¶
type EndpointUpdateResponse ¶
type EndpointUpdateResponse BaseResponse
type FindShortCodeResponse ¶
type FindTollfreeResponse ¶
type GetComplianceDocumentResponse ¶
type GetComplianceDocumentResponse struct { APIID string `json:"api_id"` DocumentID string `json:"document_id"` EndUserID string `json:"end_user_id"` DocumentTypeID string `json:"document_type_id"` Alias string `json:"alias"` FileName string `json:"file_name,omitempty"` MetaInformation struct { LastName string `json:"last_name,omitempty"` FirstName string `json:"first_name,omitempty"` DateOfBirth string `json:"date_of_birth,omitempty"` AddressLine1 string `json:"address_line_1,omitempty"` AddressLine2 string `json:"address_line_2,omitempty"` City string `json:"city,omitempty"` Country string `json:"country,omitempty"` PostalCode string `json:"postal_code,omitempty"` UniqueIdentificationNumber string `json:"unique_identification_number,omitempty"` Nationality string `json:"nationality,omitempty"` PlaceOfBirth string `json:"place_of_birth,omitempty"` DateOfIssue string `json:"date_of_issue,omitempty"` DateOfExpiration string `json:"date_of_expiration,omitempty"` TypeOfUtility string `json:"type_of_utility,omitempty"` BillingId string `json:"billing_id,omitempty"` BillingDate string `json:"billing_date,omitempty"` BusinessName string `json:"business_name,omitempty"` TypeOfId string `json:"type_of_id,omitempty"` SupportPhoneNumber string `json:"support_phone_number,omitempty"` SupportEmail string `json:"support_email,omitempty"` AuthorizedRepresentativeName string `json:"authorized_representative_name,omitempty"` BillDate string `json:"bill_date,omitempty"` BillId string `json:"bill_id,omitempty"` UseCaseDescription string `json:"use_case_description,omitempty"` } `json:"meta_information"` CreatedAt string `json:"created_at"` }
type GetComplianceDocumentTypeResponse ¶
type GetComplianceDocumentTypeResponse struct { APIID string `json:"api_id"` CreatedAt time.Time `json:"created_at"` Description string `json:"description"` DocumentName string `json:"document_name"` DocumentTypeID string `json:"document_type_id"` Information []struct { FieldName string `json:"field_name"` FieldType string `json:"field_type"` FriendlyName string `json:"friendly_name"` HelpText string `json:"help_text,omitempty"` MaxLength int `json:"max_length,omitempty"` MinLength int `json:"min_length,omitempty"` Format string `json:"format,omitempty"` Enums []string `json:"enums,omitempty"` } `json:"information"` ProofRequired interface{} `json:"proof_required"` }
type GetComplianceRequirementResponse ¶
type GetComplianceRequirementResponse struct { APIID string `json:"api_id"` ComplianceRequirementID string `json:"compliance_requirement_id"` CountryIso2 string `json:"country_iso2"` NumberType string `json:"number_type"` EndUserType string `json:"end_user_type"` AcceptableDocumentTypes []struct { Name string `json:"name"` Scope string `json:"scope"` AcceptableDocuments []struct { DocumentTypeID string `json:"document_type_id"` DocumentTypeName string `json:"document_type_name"` } `json:"acceptable_documents"` } `json:"acceptable_document_types"` }
type ListComplianceApplicationResponse ¶
type ListComplianceApplicationResponse struct { APIID string `json:"api_id"` Meta struct { Limit int `json:"limit"` Next string `json:"next"` Offset int `json:"offset"` Previous interface{} `json:"previous"` TotalCount int `json:"total_count"` } `json:"meta"` Objects []struct { CreatedAt time.Time `json:"created_at"` ComplianceApplicationID string `json:"compliance_application_id"` Alias string `json:"alias"` Status string `json:"status"` EndUserType string `json:"end_user_type"` CountryIso2 string `json:"country_iso2"` NumberType string `json:"number_type"` EndUserID string `json:"end_user_id"` ComplianceRequirementID string `json:"compliance_requirement_id"` Documents []struct { DocumentID string `json:"document_id"` Name string `json:"name"` DocumentName string `json:"document_name"` DocumentTypeID string `json:"document_type_id"` DocumentTypeName string `json:"document_type_name"` Scope string `json:"scope"` } `json:"documents"` } `json:"objects"` }
type ListComplianceDocumentResponse ¶
type ListComplianceDocumentResponse struct { APIID string `json:"api_id"` Meta struct { Limit int `json:"limit"` Next string `json:"next"` Offset int `json:"offset"` Previous interface{} `json:"previous"` TotalCount int `json:"total_count"` } `json:"meta"` Objects []struct { CreatedAt time.Time `json:"created_at"` ComplianceDocumentID string `json:"compliance_document_id"` Alias string `json:"alias"` MetaInformation struct { LastName string `json:"last_name,omitempty"` FirstName string `json:"first_name,omitempty"` DateOfBirth string `json:"date_of_birth,omitempty"` AddressLine1 string `json:"address_line_1,omitempty"` AddressLine2 string `json:"address_line_2,omitempty"` City string `json:"city,omitempty"` Country string `json:"country,omitempty"` PostalCode string `json:"postal_code,omitempty"` UniqueIdentificationNumber string `json:"unique_identification_number,omitempty"` Nationality string `json:"nationality,omitempty"` PlaceOfBirth string `json:"place_of_birth,omitempty"` DateOfIssue string `json:"date_of_issue,omitempty"` DateOfExpiration string `json:"date_of_expiration,omitempty"` TypeOfUtility string `json:"type_of_utility,omitempty"` BillingId string `json:"billing_id,omitempty"` BillingDate string `json:"billing_date,omitempty"` BusinessName string `json:"business_name,omitempty"` TypeOfId string `json:"type_of_id,omitempty"` SupportPhoneNumber string `json:"support_phone_number,omitempty"` SupportEmail string `json:"support_email,omitempty"` AuthorizedRepresentativeName string `json:"authorized_representative_name,omitempty"` BillDate string `json:"bill_date,omitempty"` BillId string `json:"bill_id,omitempty"` UseCaseDescription string `json:"use_case_description,omitempty"` } `json:"meta_information"` File string `json:"file,omitempty"` EndUserID string `json:"end_user_id"` DocumentTypeID string `json:"document_type_id"` } `json:"objects"` }
type ListComplianceDocumentTypeResponse ¶
type ListComplianceDocumentTypeResponse struct { APIID string `json:"api_id"` Meta struct { Limit int `json:"limit"` Next interface{} `json:"next"` Offset int `json:"offset"` Previous interface{} `json:"previous"` TotalCount int `json:"total_count"` } `json:"meta"` Objects []struct { CreatedAt time.Time `json:"created_at"` Description string `json:"description"` DocumentName string `json:"document_name"` DocumentTypeID string `json:"document_type_id"` Information []struct { FieldName string `json:"field_name"` FieldType string `json:"field_type"` Format string `json:"format,omitempty"` FriendlyName string `json:"friendly_name"` MaxLength int `json:"max_length,omitempty"` MinLength int `json:"min_length,omitempty"` HelpText string `json:"help_text,omitempty"` Enums []string `json:"enums,omitempty"` } `json:"information"` ProofRequired interface{} `json:"proof_required"` } `json:"objects"` }
type ListComplianceRequirementParams ¶
type ListComplianceRequirementParams struct { CountryIso2 string `json:"country_iso2,omitempty" url:"country_iso2,omitempty"` NumberType string `json:"number_type,omitempty" url:"number_type,omitempty"` EndUserType string `json:"end_user_type,omitempty" url:"end_user_type,omitempty"` PhoneNumber string `json:"phone_number,omitempty" url:"phone_number,omitempty"` }
type ListMPCMeta ¶
type LiveCall ¶
type LiveCall struct { From string `json:"from,omitempty" url:"from,omitempty"` To string `json:"to,omitempty" url:"to,omitempty"` AnswerURL string `json:"answer_url,omitempty" url:"answer_url,omitempty"` CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` CallerName string `json:"caller_name,omitempty" url:"caller_name,omitempty"` ParentCallUUID string `json:"parent_call_uuid,omitempty" url:"parent_call_uuid,omitempty"` SessionStart string `json:"session_start,omitempty" url:"session_start,omitempty"` CallStatus string `json:"call_status,omitempty" url:"call_status,omitempty"` StirVerification string `json:"stir_verification,omitempty" url:"stir_verification,omitempty"` }
type LiveCallFilters ¶
type LiveCallFilters struct { CallDirection string `json:"call_direction,omitempty" url:"call_direction,omitempty"` FromNumber string `json:"from_number,omitempty" url:"from_number,omitempty"` ToNumber string `json:"to_number,omitempty" url:"to_number,omitempty"` Status string `json:"status,omitempty" url:"status,omitempty" default:"live"` }
type LiveCallIDListResponse ¶
type LiveCallService ¶
type LiveCallService struct {
// contains filtered or unexported fields
}
func (*LiveCallService) Get ¶
func (service *LiveCallService) Get(LiveCallId string) (response *LiveCall, err error)
func (*LiveCallService) IDList ¶
func (service *LiveCallService) IDList(data ...LiveCallFilters) (response *LiveCallIDListResponse, err error)
type LookupError ¶
type LookupError struct { ApiID string `json:"api_id"` ErrorCode int `json:"error_code"` Message string `json:"message"` // contains filtered or unexported fields }
LookupError is the error response returned by Plivo Lookup API.
func (*LookupError) Error ¶
func (e *LookupError) Error() string
Error returns the raw json/text response from Lookup API.
type LookupParams ¶
type LookupParams struct { // If empty, Type defaults to "carrier". Type string `url:"type"` }
LookupParams is the input parameters for Plivo Lookup API.
type LookupResponse ¶
type LookupResponse struct { ApiID string `json:"api_id"` PhoneNumber string `json:"phone_number"` Country *Country `json:"country"` Format *NumberFormat `json:"format"` Carrier *Carrier `json:"carrier"` ResourceURI string `json:"resource_uri"` }
LookupResponse is the success response returned by Plivo Lookup API.
type LookupService ¶
type LookupService struct {
// contains filtered or unexported fields
}
func (*LookupService) Get ¶
func (s *LookupService) Get(number string, params LookupParams) (*LookupResponse, error)
Get looks up a phone number using Plivo Lookup API.
type MPCUpdateResponse ¶
type Media ¶
type Media struct { ContentType string `json:"content_type,omitempty" url:"content_type,omitempty"` FileName string `json:"file_name,omitempty" url:"file_name,omitempty"` MediaID string `json:"media_id,omitempty" url:"media_id,omitempty"` Size int `json:"size,omitempty" url:"size,omitempty"` UploadTime string `json:"upload_time,omitempty" url:"upload_time,omitempty"` URL string `json:"url,omitempty" url:"url,omitempty"` }
type MediaDeleteResponse ¶
type MediaDeleteResponse struct {
Error string `json:"error,omitempty"`
}
type MediaListParams ¶
type MediaListResponseBody ¶
type MediaListResponseBody struct {
Objects []MMSMedia `json:"objects" url:"objects"`
}
type MediaResponseBody ¶
type MediaResponseBody struct { Media []MediaUploadResponse `json:"objects" url:"objects"` ApiID string `json:"api_id" url:"api_id"` }
type MediaService ¶
type MediaService struct { Media // contains filtered or unexported fields }
func (*MediaService) Get ¶
func (service *MediaService) Get(media_id string) (response *Media, err error)
func (*MediaService) List ¶
func (service *MediaService) List(param MediaListParams) (response *BaseListMediaResponse, err error)
func (*MediaService) Upload ¶
func (service *MediaService) Upload(params MediaUpload) (response *MediaResponseBody, err error)
type MediaUpload ¶
type MediaUpload struct {
UploadFiles []Files
}
type MediaUploadResponse ¶
type MediaUploadResponse struct { ContentType string `json:"content_type,omitempty" url:"content_type,omitempty"` FileName string `json:"file_name,omitempty" url:"file_name,omitempty"` MediaID string `json:"media_id,omitempty" url:"media_id,omitempty"` Size int `json:"size,omitempty" url:"size,omitempty"` UploadTime string `json:"upload_time,omitempty" url:"upload_time,omitempty"` URL string `json:"url,omitempty" url:"url,omitempty"` Status string `json:"status,omitempty" url:"status,omitempty"` StatusCode int `json:"status_code,omitempty" url:"status_code,omitempty"` ErrorMessage string `json:"error_message,omitempty" url:"error_message,omitempty"` ErrorCode int `json:"error_code,omitempty" url:"error_code,omitempty"` }
type Member ¶
type Member struct { Muted bool `json:"muted,omitempty" url:"muted,omitempty"` MemberID string `json:"member_id,omitempty" url:"member_id,omitempty"` Deaf bool `json:"deaf,omitempty" url:"deaf,omitempty"` From string `json:"from,omitempty" url:"from,omitempty"` To string `json:"to,omitempty" url:"to,omitempty"` CallerName string `json:"caller_name,omitempty" url:"caller_name,omitempty"` Direction string `json:"direction,omitempty" url:"direction,omitempty"` CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` JoinTime string `json:"join_time,omitempty" url:"join_time,omitempty"` }
type Message ¶
type Message struct { ToNumber string `json:"to_number,omitempty" url:"to_number,omitempty"` FromNumber string `json:"from_number,omitempty" url:"from_number,omitempty"` CloudRate string `json:"cloud_rate,omitempty" url:"cloud_rate,omitempty"` MessageType string `json:"message_type,omitempty" url:"message_type,omitempty"` ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` CarrierRate string `json:"carrier_rate,omitempty" url:"carrier_rate,omitempty"` MessageDirection string `json:"message_direction,omitempty" url:"message_direction,omitempty"` MessageState string `json:"message_state,omitempty" url:"message_state,omitempty"` TotalAmount string `json:"total_amount,omitempty" url:"total_amount,omitempty"` MessageUUID string `json:"message_uuid,omitempty" url:"message_uuid,omitempty"` MessageTime string `json:"message_time,omitempty" url:"message_time,omitempty"` ErrorCode string `json:"error_code,omitempty" url:"error_code,omitempty"` PowerpackID string `json:"powerpack_id,omitempty" url:"powerpack_id,omitempty"` }
type MessageCreateParams ¶
type MessageCreateParams struct { Src string `json:"src,omitempty" url:"src,omitempty"` Dst string `json:"dst,omitempty" url:"dst,omitempty"` Text string `json:"text,omitempty" url:"text,omitempty"` // Optional parameters. Type string `json:"type,omitempty" url:"type,omitempty"` URL string `json:"url,omitempty" url:"url,omitempty"` Method string `json:"method,omitempty" url:"method,omitempty"` Trackable bool `json:"trackable,omitempty" url:"trackable,omitempty"` Log interface{} `json:"log,omitempty" url:"log,omitempty"` MediaUrls []string `json:"media_urls,omitempty" url:"media_urls,omitempty"` MediaIds []string `json:"media_ids,omitempty" url:"media_ids,omitempty"` // Either one of src and powerpackuuid should be given PowerpackUUID string `json:"powerpack_uuid,omitempty" url:"powerpack_uuid,omitempty"` }
type MessageCreateResponseBody ¶
type MessageCreateResponseBody struct { Message string `json:"message" url:"message"` ApiID string `json:"api_id" url:"api_id"` MessageUUID []string `json:"message_uuid" url:"message_uuid"` Error string `json:"error" url:"error"` }
Stores response for ending a message.
type MessageList ¶
type MessageListParams ¶
type MessageListParams struct { Limit int `url:"limit,omitempty"` Offset int `url:"offset,omitempty"` PowerpackID string `url:"powerpack_id,omitempty"` Subaccount string `url:"subaccount,omitempty"` MessageDirection string `url:"message_direction,omitempty"` MessageState string `url:"message_state,omitempty"` ErrorCode int `url:"error_code,omitempty"` MessageTime string `url:"message_time,omitempty"` MessageTimeGreaterThan string `url:"message_time__gt,omitempty"` MessageTimeGreaterOrEqual string `url:"message_time__gte,omitempty"` MessageTimeLessThan string `url:"message_time__lt,omitempty"` MessageTimeLessOrEqual string `url:"message_time__lte,omitempty"` }
type MessageService ¶
type MessageService struct { Message // contains filtered or unexported fields }
func (*MessageService) Create ¶
func (service *MessageService) Create(params MessageCreateParams) (response *MessageCreateResponseBody, err error)
func (*MessageService) Get ¶
func (service *MessageService) Get(messageUuid string) (response *Message, err error)
func (*MessageService) List ¶
func (service *MessageService) List(params MessageListParams) (response *MessageList, err error)
func (*MessageService) ListMedia ¶
func (service *MessageService) ListMedia(messageUuid string) (response *MediaListResponseBody, err error)
type MultiPartyCallAddParticipantParams ¶
type MultiPartyCallAddParticipantParams struct { Role string `json:"role,omitempty" url:"role,omitempty"` From string `json:"from,omitempty" url:"from,omitempty"` To string `json:"to,omitempty" url:"to,omitempty"` CallUuid string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` CallerName string `json:"caller_name,omitempty" url:"caller_name,omitempty"` CallStatusCallbackUrl string `json:"call_status_callback_url,omitempty" url:"call_status_callback_url,omitempty"` CallStatusCallbackMethod string `json:"call_status_callback_method,omitempty" url:"call_status_callback_method,omitempty"` SipHeaders string `json:"sip_headers,omitempty" url:"sip_headers,omitempty"` ConfirmKey string `json:"confirm_key,omitempty" url:"confirm_key,omitempty"` ConfirmKeySoundUrl string `json:"confirm_key_sound_url,omitempty" url:"confirm_key_sound_url,omitempty"` ConfirmKeySoundMethod string `json:"confirm_key_sound_method,omitempty" url:"confirm_key_sound_method,omitempty"` DialMusic string `json:"dial_music,omitempty" url:"dial_music,omitempty"` RingTimeout interface{} `json:"ring_timeout,omitempty" url:"ring_timeout,omitempty"` DelayDial interface{} `json:"delay_dial,omitempty" uril:"caller_name,omitempty"` MaxDuration int64 `json:"max_duration,omitempty" url:"max_duration,omitempty"` MaxParticipants int64 `json:"max_participants,omitempty" url:"max_participants,omitempty"` WaitMusicUrl string `json:"wait_music_url,omitempty" url:"wait_music_url,omitempty"` WaitMusicMethod string `json:"wait_music_method,omitempty" url:"wait_music_method,omitempty"` AgentHoldMusicUrl string `json:"agent_hold_music_url,omitempty" url:"agent_hold_music_url,omitempty"` AgentHoldMusicMethod string `json:"agent_hold_music_method,omitempty" url:"agent_hold_music_method,omitempty"` CustomerHoldMusicUrl string `json:"customer_hold_music_url,omitempty" url:"customer_hold_music_url,omitempty"` CustomerHoldMusicMethod string `json:"customer_hold_music_method,omitempty" url:"customer_hold_music_method,omitempty"` RecordingCallbackUrl string `json:"recording_callback_url,omitempty" url:"recording_callback_url,omitempty"` RecordingCallbackMethod string `json:"recording_callback_method,omitempty" url:"recording_callback_method,omitempty"` StatusCallbackUrl string `json:"status_callback_url,omitempty" url:"status_callback_url,omitempty"` StatusCallbackMethod string `json:"status_callback_method,omitempty" url:"status_callback_method,omitempty"` OnExitActionUrl string `json:"on_exit_action_url,omitempty" url:"on_exit_action_url,omitempty"` OnExitActionMethod string `json:"on_exit_action_method,omitempty" url:"on_exit_action_method,omitempty"` Record bool `json:"record,omitempty" url:"record,omitempty"` RecordFileFormat string `json:"record_file_format,omitempty" url:"record_file_format,omitempty"` StatusCallbackEvents string `json:"status_callback_events,omitempty" url:"status_callback_events,omitempty"` StayAlone bool `json:"stay_alone,omitempty" url:"stay_alone,omitempty"` CoachMode bool `json:"coach_mode,omitempty" url:"coach_mode,omitempty"` Mute bool `json:"mute,omitempty" url:"mute,omitempty"` Hold bool `json:"hold,omitempty" url:"hold,omitempty"` StartMpcOnEnter *bool `json:"start_mpc_on_enter,omitempty" url:"start_mpc_on_enter,omitempty"` EndMpcOnExit bool `json:"end_mpc_on_exit,omitempty" url:"end_mpc_on_exit,omitempty"` RelayDtmfInputs bool `json:"relay_dtmf_inputs,omitempty" url:"relay_dtmf_inputs,omitempty"` EnterSound string `json:"enter_sound,omitempty" url:"enter_sound,omitempty"` EnterSoundMethod string `json:"enter_sound_method,omitempty" url:"enter_sound_method,omitempty"` ExitSound string `json:"exit_sound,omitempty" url:"exit_sound,omitempty"` ExitSoundMethod string `json:"exit_sound_method,omitempty" url:"exit_sound_method,omitempty"` }
type MultiPartyCallAddParticipantResponse ¶
type MultiPartyCallAddParticipantResponse struct { ApiID string `json:"api_id" url:"api_id"` Calls []*CallAddParticipant `json:"calls" url:"calls"` Message string `json:"message,omitempty" url:"message,omitempty"` RequestUuid string `json:"request_uuid,omitempty" url:"request_uuid,omitempty"` }
type MultiPartyCallGetResponse ¶
type MultiPartyCallGetResponse struct { BilledAmount string `json:"billed_amount,omitempty" url:"billed_amount,omitempty"` BilledDuration int64 `json:"billed_duration,omitempty" url:"billed_duration,omitempty"` CreationTime string `json:"creation_time,omitempty" url:"creation_time,omitempty"` Duration int64 `json:"duration,omitempty" url:"duration,omitempty"` EndTime string `json:"end_time,omitempty" url:"end_time,omitempty"` FriendlyName string `json:"friendly_name,omitempty" url:"friendly_name,omitempty"` MpcUuid string `json:"mpc_uuid,omitempty" url:"mpc_uuid,omitempty"` Participants string `json:"participants,omitempty" url:"participants,omitempty"` Recording string `json:"recording,omitempty" url:"recording,omitempty"` ResourceUri string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` StartTime string `json:"start_time,omitempty" url:"start_time,omitempty"` Status string `json:"status,omitempty" url:"status,omitempty"` StayAlone bool `json:"stay_alone,omitempty" url:"stay_alone,omitempty"` SubAccount string `json:"sub_account,omitempty" url:"sub_account,omitempty"` TerminationCause string `json:"termination_cause,omitempty" url:"termination_cause,omitempty"` TerminationCauseCode int64 `json:"termination_cause_code,omitempty" url:"termination_cause_code,omitempty"` }
type MultiPartyCallListParams ¶
type MultiPartyCallListParams struct { SubAccount string `json:"sub_account,omitempty" url:"sub_account,omitempty"` FriendlyName string `json:"friendly_name,omitempty" url:"friendly_name,omitempty"` Status string `json:"status,omitempty" url:"status,omitempty"` TerminationCauseCode int64 `json:"termination_cause_code,omitempty" url:"termination_cause_code,omitempty"` EndTimeGt string `json:"end_time__gt,omitempty" url:"end_time__gt,omitempty"` EndTimeGte string `json:"end_time__gte,omitempty" url:"end_time__gte,omitempty"` EndTimeLt string `json:"end_time__lt,omitempty" url:"end_time__lt,omitempty"` EndTimeLte string `json:"end_time__lte,omitempty" url:"end_time__lte,omitempty"` CreationTimeGt string `json:"creation_time__gt,omitempty" url:"creation_time__gt,omitempty"` CreationTimeGte string `json:"creation_time__gte,omitempty" url:"creation_time__gte,omitempty"` CreationTimeLt string `json:"creation_time__lt,omitempty" url:"creation_time__lt,omitempty"` CreationTimeLte string `json:"creation_time__lte,omitempty" url:"creation_time__lte,omitempty"` Limit int64 `json:"limit,omitempty" url:"limit,omitempty"` Offset int64 `json:"offset,omitempty" url:"offset,omitempty"` }
type MultiPartyCallListParticipantParams ¶
type MultiPartyCallListParticipantParams struct {
CallUuid string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"`
}
type MultiPartyCallListParticipantsResponse ¶
type MultiPartyCallListParticipantsResponse struct { ApiID string `json:"api_id" url:"api_id"` Meta *ListMPCMeta `json:"meta" url:"meta"` Objects []*MultiPartyCallParticipant `json:"objects" url:"objects"` }
type MultiPartyCallListResponse ¶
type MultiPartyCallListResponse struct { ApiID string `json:"api_id" url:"api_id"` Meta *ListMPCMeta `json:"meta" url:"meta"` Objects []*MultiPartyCallGetResponse `json:"objects" url:"objects"` }
type MultiPartyCallParticipant ¶
type MultiPartyCallParticipant struct { BilledAmount string `json:"billed_amount,omitempty" url:"billed_amount,omitempty"` BilledDuration int64 `json:"billed_duration,omitempty" url:"billed_duration,omitempty"` CallUuid string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` CoachMode bool `json:"coach_mode,omitempty" url:"coach_mode,omitempty"` Duration int64 `json:"duration,omitempty" url:"duration,omitempty"` EndMpcOnExit bool `json:"end_mpc_on_exit,omitempty" url:"end_mpc_on_exit,omitempty"` ExitCause string `json:"exit_cause,omitempty" url:"exit_cause,omitempty"` ExitTime string `json:"exit_time,omitempty" url:"exit_time,omitempty"` Hold bool `json:"hold,omitempty" url:"hold,omitempty"` JoinTime string `json:"join_time,omitempty" url:"join_time,omitempty"` MemberId string `json:"member_id,omitempty" url:"member_id,omitempty"` MpcUuid string `json:"mpc_uuid,omitempty" url:"mpc_uuid,omitempty"` Mute bool `json:"mute,omitempty" url:"mute,omitempty"` ResourceUri string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` Role string `json:"role,omitempty" url:"role,omitempty"` StartMpcOnEnter bool `json:"start_mpc_on_enter,omitempty" url:"start_mpc_on_enter,omitempty"` }
type MultiPartyCallService ¶
type MultiPartyCallService struct {
// contains filtered or unexported fields
}
func (*MultiPartyCallService) AddParticipant ¶
func (service *MultiPartyCallService) AddParticipant(basicParams MultiPartyCallBasicParams, params MultiPartyCallAddParticipantParams) (response *MultiPartyCallAddParticipantResponse, err error)
func (*MultiPartyCallService) Get ¶
func (service *MultiPartyCallService) Get(basicParams MultiPartyCallBasicParams) (response *MultiPartyCallGetResponse, err error)
func (*MultiPartyCallService) GetParticipant ¶
func (service *MultiPartyCallService) GetParticipant(basicParams MultiPartyCallParticipantParams) (response *MultiPartyCallParticipant, err error)
func (*MultiPartyCallService) KickParticipant ¶
func (service *MultiPartyCallService) KickParticipant(basicParams MultiPartyCallParticipantParams) (err error)
func (*MultiPartyCallService) List ¶
func (service *MultiPartyCallService) List(params MultiPartyCallListParams) (response *MultiPartyCallListResponse, err error)
func (*MultiPartyCallService) ListParticipants ¶
func (service *MultiPartyCallService) ListParticipants(basicParams MultiPartyCallBasicParams, params MultiPartyCallListParticipantParams) (response *MultiPartyCallListParticipantsResponse, err error)
func (*MultiPartyCallService) PauseParticipantRecording ¶
func (service *MultiPartyCallService) PauseParticipantRecording(basicParams MultiPartyCallParticipantParams) (err error)
func (*MultiPartyCallService) PauseRecording ¶
func (service *MultiPartyCallService) PauseRecording(basicParams MultiPartyCallBasicParams) (err error)
func (*MultiPartyCallService) ResumeParticipantRecording ¶
func (service *MultiPartyCallService) ResumeParticipantRecording(basicParams MultiPartyCallParticipantParams) (err error)
func (*MultiPartyCallService) ResumeRecording ¶
func (service *MultiPartyCallService) ResumeRecording(basicParams MultiPartyCallBasicParams) (err error)
func (*MultiPartyCallService) Start ¶
func (service *MultiPartyCallService) Start(basicParams MultiPartyCallBasicParams) (err error)
func (*MultiPartyCallService) StartParticipantRecording ¶
func (service *MultiPartyCallService) StartParticipantRecording(basicParams MultiPartyCallParticipantParams, params MultiPartyCallStartRecordingParams) (response *MultiPartyCallStartRecordingResponse, err error)
func (*MultiPartyCallService) StartRecording ¶
func (service *MultiPartyCallService) StartRecording(basicParams MultiPartyCallBasicParams, params MultiPartyCallStartRecordingParams) (response *MultiPartyCallStartRecordingResponse, err error)
func (*MultiPartyCallService) Stop ¶
func (service *MultiPartyCallService) Stop(basicParams MultiPartyCallBasicParams) (err error)
func (*MultiPartyCallService) StopParticipantRecording ¶
func (service *MultiPartyCallService) StopParticipantRecording(basicParams MultiPartyCallParticipantParams) (err error)
func (*MultiPartyCallService) StopRecording ¶
func (service *MultiPartyCallService) StopRecording(basicParams MultiPartyCallBasicParams) (err error)
func (*MultiPartyCallService) UpdateParticipant ¶
func (service *MultiPartyCallService) UpdateParticipant(basicParams MultiPartyCallParticipantParams, params MultiPartyCallUpdateParticipantParams) (response *MultiPartyCallUpdateParticipantResponse, err error)
type MultiPartyCallStartRecordingParams ¶
type MultiPartyCallStartRecordingParams struct { FileFormat string `json:"file_format,omitempty" url:"file_format,omitempty"` StatusCallbackUrl string `json:"status_callback_url,omitempty" url:"status_callback_url,omitempty"` StatusCallbackMethod string `json:"status_callback_method,omitempty" url:"status_callback_method,omitempty"` }
type MultiPartyCallStartRecordingResponse ¶
type MultiPartyCallStartRecordingResponse struct { ApiID string `json:"api_id" url:"api_id"` Message string `json:"message,omitempty" url:"message,omitempty"` RecordingId string `json:"recording_id,omitempty" url:"recording_id,omitempty"` RecordingUrl string `json:"recording_url,omitempty" url:"recording_url,omitempty"` }
type MultiPartyCallUpdateParticipantResponse ¶
type MultiPartyCallUpdateParticipantResponse struct { ApiID string `json:"api_id" url:"api_id"` MPCUpdateResponse }
type NodeActionResponse ¶
type Number ¶
type Number struct { Alias string `json:"alias,omitempty" url:"alias,omitempty"` VoiceEnabled bool `json:"voice_enabled,omitempty" url:"voice_enabled,omitempty"` SMSEnabled bool `json:"sms_enabled,omitempty" url:"sms_enabled,omitempty"` MMSEnabled bool `json:"mms_enabled,omitempty" url:"mms_enabled,omitempty"` Description string `json:"description,omitempty" url:"description,omitempty"` PlivoNumber bool `json:"plivo_number,omitempty" url:"plivo_number,omitempty"` City string `json:"city,omitempty" url:"city,omitempty"` Country string `json:"country,omitempty" url:"country,omitempty"` Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` Number string `json:"number,omitempty" url:"number,omitempty"` NumberType string `json:"number_type,omitempty" url:"number_type,omitempty"` MonthlyRentalRate string `json:"monthly_rental_rate,omitempty" url:"monthly_rental_rate,omitempty"` Application string `json:"application,omitempty" url:"application,omitempty"` AddedOn string `json:"added_on,omitempty" url:"added_on,omitempty"` ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` VoiceRate string `json:"voice_rate,omitempty" url:"voice_rate,omitempty"` SMSRate string `json:"sms_rate,omitempty" url:"sms_rate,omitempty"` MMSRate string `json:"mms_rate,omitempty" url:"mms_rate,omitempty"` }
type NumberCreateParams ¶
type NumberCreateParams struct { Numbers string `json:"numbers,omitempty" url:"numbers,omitempty"` Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` Region string `json:"region,omitempty" url:"region,omitempty"` NumberType string `json:"number_type,omitempty" url:"number_type,omitempty"` AppID string `json:"app_id,omitempty" url:"app_id,omitempty"` Subaccount string `json:"subaccount,omitempty" url:"subaccount,omitempty"` }
type NumberCreateResponse ¶
type NumberCreateResponse BaseResponse
type NumberDeleteResponse ¶
type NumberDeleteResponse struct {
PowerpackDeleteResponse
}
type NumberFormat ¶
type NumberListParams ¶
type NumberListParams struct { NumberType string `json:"number_type,omitempty" url:"number_type,omitempty"` NumberStartsWith string `json:"number_startswith,omitempty" url:"number_startswith,omitempty"` Subaccount string `json:"subaccount,omitempty" url:"subaccount,omitempty"` Services string `json:"services,omitempty" url:"services,omitempty"` Alias string `json:"alias,omitempty" url:"alias,omitempty"` Limit int64 `json:"limit,omitempty" url:"limit,omitempty"` Offset int64 `json:"offset,omitempty" url:"offset,omitempty"` }
type NumberListResponse ¶
type NumberPoolResponse ¶
type NumberPoolResponse struct { Number_pool_uuid string `json:"number_pool_uuid,omitempty"` Number string `json:"number,omitempty"` Type string `json:"Type,omitempty"` Country_iso2 string `json:"country_iso2,omitempty"` Service string `json:"service,omitempty"` Added_on string `json:"added_on,omitempty"` Account_phone_number_resource string `json:"account_phone_number_resource,omitempty"` }
type NumberPriority ¶
type NumberRemoveParams ¶
type NumberRemoveParams struct {
Unrent bool `json:"unrent,omitempty"`
}
type NumberResponse ¶
type NumberResponse struct { ApiID string `json:"api_id,omitempty"` NumberPoolResponse Error string `json:"error,omitempty"` }
type NumberService ¶
type NumberService struct {
// contains filtered or unexported fields
}
func (*NumberService) Create ¶
func (service *NumberService) Create(params NumberCreateParams) (response *NumberCreateResponse, err error)
func (*NumberService) Delete ¶
func (service *NumberService) Delete(NumberId string) (err error)
func (*NumberService) Get ¶
func (service *NumberService) Get(NumberId string) (response *Number, err error)
func (*NumberService) List ¶
func (service *NumberService) List(params NumberListParams) (response *NumberListResponse, err error)
func (*NumberService) Update ¶
func (service *NumberService) Update(NumberId string, params NumberUpdateParams) (response *NumberUpdateResponse, err error)
type NumberUpdateParams ¶
type NumberUpdateResponse ¶
type NumberUpdateResponse BaseResponse
type Phlo ¶
type Phlo struct { BaseResource ApiId string `json:"api_id" url:"api_id"` PhloId string `json:"phlo_id" url:"phlo_id"` Name string `json:"name" url:"name"` CreatedOn string `json:"created_on" url:"created_on"` }
func (*Phlo) MultiPartyCall ¶
func (self *Phlo) MultiPartyCall(nodeId string) (response *PhloMultiPartyCall, err error)
type PhloClient ¶
type PhloClient struct { BaseClient Phlos *Phlos }
func NewPhloClient ¶
func NewPhloClient(authId, authToken string, options *ClientOptions) (client *PhloClient, err error)
To set a proxy for all requests, configure the Transport for the HttpClient passed in:
&http.Client{ Transport: &http.Transport{ Proxy: http.ProxyURL("http//your.proxy.here"), }, }
Similarly, to configure the timeout, set it on the HttpClient passed in:
&http.Client{ Timeout: time.Minute, }
func (*PhloClient) NewRequest ¶
type PhloMultiPartyCall ¶
type PhloMultiPartyCall struct { Node BaseResource }
func (*PhloMultiPartyCall) Call ¶
func (self *PhloMultiPartyCall) Call(params PhloMultiPartyCallActionPayload) (*NodeActionResponse, error)
func (*PhloMultiPartyCall) ColdTransfer ¶
func (self *PhloMultiPartyCall) ColdTransfer(params PhloMultiPartyCallActionPayload) (response *NodeActionResponse, err error)
func (*PhloMultiPartyCall) Member ¶
func (self *PhloMultiPartyCall) Member(memberID string) (response *PhloMultiPartyCallMember)
func (*PhloMultiPartyCall) WarmTransfer ¶
func (self *PhloMultiPartyCall) WarmTransfer(params PhloMultiPartyCallActionPayload) (response *NodeActionResponse, err error)
type PhloMultiPartyCallMember ¶
type PhloMultiPartyCallMember struct { NodeID string `json:"node_id" url:"node_id"` PhloID string `json:"phlo_id" url:"phlo_id"` NodeType string `json:"node_type" url:"node_type"` MemberAddress string `json:"member_address" url:"member_address"` BaseResource }
func (*PhloMultiPartyCallMember) AbortTransfer ¶
func (self *PhloMultiPartyCallMember) AbortTransfer() (*NodeActionResponse, error)
func (*PhloMultiPartyCallMember) HangUp ¶
func (service *PhloMultiPartyCallMember) HangUp() (*NodeActionResponse, error)
func (*PhloMultiPartyCallMember) Hold ¶
func (service *PhloMultiPartyCallMember) Hold() (*NodeActionResponse, error)
func (*PhloMultiPartyCallMember) ResumeCall ¶
func (service *PhloMultiPartyCallMember) ResumeCall() (*NodeActionResponse, error)
func (*PhloMultiPartyCallMember) UnHold ¶
func (service *PhloMultiPartyCallMember) UnHold() (*NodeActionResponse, error)
func (*PhloMultiPartyCallMember) VoiceMailDrop ¶
func (service *PhloMultiPartyCallMember) VoiceMailDrop() (*NodeActionResponse, error)
type PhloMultiPartyCallMemberActionPayload ¶
type PhloMultiPartyCallMemberActionPayload struct {
Action string `json:"action" url:"action"`
}
type Phlos ¶
type Phlos struct {
BaseResourceInterface
}
func NewPhlos ¶
func NewPhlos(client *PhloClient) (phlos *Phlos)
type PhoneNumber ¶
type PhoneNumber struct { Country string `json:"country" url:"country"` City string `json:"city" url:"city"` Lata int `json:"lata" url:"lata"` MonthlyRentalRate string `json:"monthly_rental_rate" url:"monthly_rental_rate"` Number string `json:"number" url:"number"` Type string `json:"type" url:"type"` Prefix string `json:"prefix" url:"prefix"` RateCenter string `json:"rate_center" url:"rate_center"` Region string `json:"region" url:"region"` ResourceURI string `json:"resource_uri" url:"resource_uri"` Restriction string `json:"restriction" url:"restriction"` RestrictionText string `json:"restriction_text" url:"restriction_text"` SetupRate string `json:"setup_rate" url:"setup_rate"` SmsEnabled bool `json:"sms_enabled" url:"sms_enabled"` SmsRate string `json:"sms_rate" url:"sms_rate"` MmsEnabled bool `json:"mms_enabled" url:"mms_enabled"` MmsRate string `json:"mms_rate" url:"mms_rate"` VoiceEnabled bool `json:"voice_enabled" url:"voice_enabled"` VoiceRate string `json:"voice_rate" url:"voice_rate"` }
func (PhoneNumber) ID ¶
func (self PhoneNumber) ID() string
type PhoneNumberCreateParams ¶
type PhoneNumberCreateParams struct {
AppID string `json:"app_id,omitempty" url:"app_id,omitempty"`
}
type PhoneNumberCreateResponse ¶
type PhoneNumberCreateResponse struct { APIID string `json:"api_id" url:"api_id"` Message string `json:"message" url:"message"` Numbers []struct { Number string `json:"number" url:"number"` Status string `json:"status" url:"status"` } `json:"numbers" url:"numbers"` Status string `json:"status" url:"status"` }
type PhoneNumberListParams ¶
type PhoneNumberListParams struct { CountryISO string `json:"country_iso,omitempty" url:"country_iso,omitempty"` Type string `json:"type,omitempty" url:"type,omitempty"` Pattern string `json:"pattern,omitempty" url:"pattern,omitempty"` Region string `json:"region,omitempty" url:"region,omitempty"` Services string `json:"services,omitempty" url:"services,omitempty"` LATA string `json:"lata,omitempty" url:"lata,omitempty"` RateCenter string `json:"rate_center,omitempty" url:"rate_center,omitempty"` City string `json:"city,omitempty" url:"city,omitempty"` Limit int `json:"limit,omitempty" url:"limit,omitempty"` Offset int `json:"offset,omitempty" url:"offset,omitempty"` }
type PhoneNumberListResponse ¶
type PhoneNumberListResponse struct { ApiID string `json:"api_id" url:"api_id"` Meta *Meta `json:"meta" url:"meta"` Objects []*PhoneNumber `json:"objects" url:"objects"` }
type PhoneNumberService ¶
type PhoneNumberService struct {
// contains filtered or unexported fields
}
func (*PhoneNumberService) Create ¶
func (service *PhoneNumberService) Create(number string, params PhoneNumberCreateParams) (response *PhoneNumberCreateResponse, err error)
func (*PhoneNumberService) List ¶
func (service *PhoneNumberService) List(params PhoneNumberListParams) (response *PhoneNumberListResponse, err error)
type Plan ¶
type Plan struct { VoiceRate string `json:"voice_rate,omitempty" url:"voice_rate,omitempty"` MessagingRate string `json:"messaging_rate,omitempty" url:"messaging_rate,omitempty"` Name string `json:"name_rate,omitempty" url:"name_rate,omitempty"` MonthlyCloudCredits string `json:"monthly_cloud_credits,omitempty" url:"monthly_cloud_credits,omitempty"` }
type PowerackCreateParams ¶
type PowerackCreateParams struct { Name string `json:"name,omitempty"` // Optional parameters. StickySender string `json:"sticky_sender,omitempty"` LocalConnect string `json:"local_connect,omitempty"` ApplicationType string `json:"application_type,omitempty"` ApplicationID string `json:"application_id,omitempty"` NumberPriorities []NumberPriority `json:"number_priority,omitempty"` }
type PowerackUpdateParams ¶
type PowerackUpdateParams struct { // Optional parameters. Name string `json:"name,omitempty"` StickySender string `json:"sticky_sender,omitempty"` LocalConnect string `json:"local_connect,omitempty"` ApplicationType string `json:"application_type,omitempty"` ApplicationID string `json:"application_id,omitempty"` NumberPriorities []NumberPriority `json:"number_priority,omitempty"` }
type Powerpack ¶
type Powerpack struct { UUID string `json:"uuid,omitempty"` Name string `json:"name,omitempty"` StickySender bool `json:"sticky_sender,omitempty"` LocalConnect bool `json:"local_connect,omitempty"` ApplicationType string `json:"application_type,omitempty"` ApplicationID string `json:"application_id,omitempty"` NumberPoolUUID string `json:"number_pool,omitempty"` CreatedOn string `json:"created_on,omitempty"` NumberPriorities []NumberPriority `json:"number_priority,omitempty"` }
type PowerpackAddNumberOptions ¶
type PowerpackAddNumberOptions struct { //Service can be 'sms' or 'mms'. Defaults to 'sms' when not set. Service string `json:"service,omitempty" url:"service,omitempty"` }
type PowerpackDeleteParams ¶
type PowerpackDeleteParams struct {
UnrentNumbers bool `json:"unrent_numbers,omitempty"`
}
type PowerpackDeleteResponse ¶
type PowerpackFindNumberOptions ¶
type PowerpackFindNumberOptions struct { //Service can be 'sms' or 'mms'. Defaults to 'sms' when not set. Service string `json:"service,omitempty" url:"service,omitempty"` }
type PowerpackList ¶
type PowerpackList struct { BaseListPPKResponse Objects []Powerpack `json:"objects" url:"objects"` }
powerpack list
type PowerpackListParams ¶
type PowerpackPhoneResponseBody ¶
type PowerpackPhoneResponseBody struct { BaseListPPKResponse Objects []NumberPoolResponse `json:"objects" url:"objects"` }
type PowerpackResponse ¶
type PowerpackResponse struct { CreatedOn string `json:"created_on,omitempty"` LocalConnect bool `json:"local_connect,omitempty"` Name string `json:"name,omitempty"` NumberPoolUUID string `json:"number_pool,omitempty"` PowerpackResourceURI string `json:"powerpack_resource_uri,omitempty"` StickySender bool `json:"sticky_sender,omitempty"` UUID string `json:"uuid,omitempty"` }
type PowerpackSearchParam ¶
type PowerpackSearchParam struct { Starts_with string `json:"starts_with,omitempty" url:"starts_with,omitempty"` Country_iso2 string `json:"country_iso2,omitempty" url:"country_iso2,omitempty"` Type string `json:"type,omitempty" url:"type,omitempty"` Limit string `json:"limit,omitempty" url:"limit,omitempty"` Offset string `json:"offset,omitempty" url:"offset,omitempty"` Service string `json:"service,omitempty" url:"service,omitempty"` }
type PowerpackService ¶
type PowerpackService struct { Powerpack // contains filtered or unexported fields }
func (*PowerpackService) AddNumberWithOptions ¶
func (service *PowerpackService) AddNumberWithOptions(number string, params PowerpackAddNumberOptions) (response *NumberResponse, err error)
func (*PowerpackService) Add_number ¶
func (service *PowerpackService) Add_number(number string) (response *NumberResponse, err error)
func (*PowerpackService) Add_tollfree ¶
func (service *PowerpackService) Add_tollfree(tollfree string) (response *NumberResponse, err error)
func (*PowerpackService) Buy_add_number ¶
func (service *PowerpackService) Buy_add_number(phoneParam BuyPhoneNumberParam) (response *NumberResponse, err error)
func (*PowerpackService) Count_numbers ¶
func (service *PowerpackService) Count_numbers(params PowerpackSearchParam) (count int, err error)
func (*PowerpackService) Create ¶
func (service *PowerpackService) Create(params PowerackCreateParams) (response *PowerpackCreateResponseBody, err error)
func (*PowerpackService) Delete ¶
func (service *PowerpackService) Delete(params PowerpackDeleteParams) (response *PowerpackDeleteResponse, err error)
func (*PowerpackService) FindNumbersWithOptions ¶
func (service *PowerpackService) FindNumbersWithOptions(number string, params PowerpackFindNumberOptions) (response *NumberResponse, err error)
func (*PowerpackService) Find_numbers ¶
func (service *PowerpackService) Find_numbers(number string) (response *NumberResponse, err error)
func (*PowerpackService) Find_shortcode ¶
func (service *PowerpackService) Find_shortcode(shortcode string) (response *FindShortCodeResponse, err error)
func (*PowerpackService) Find_tollfree ¶
func (service *PowerpackService) Find_tollfree(tollfree string) (response *FindTollfreeResponse, err error)
func (*PowerpackService) Get ¶
func (service *PowerpackService) Get(powerpackUUID string) (response *PowerpackService, err error)
func (*PowerpackService) List ¶
func (service *PowerpackService) List(params PowerpackListParams) (response *PowerpackList, err error)
returns the List.. of all powerpack
func (*PowerpackService) List_numbers ¶
func (service *PowerpackService) List_numbers(params PowerpackSearchParam) (response *PowerpackPhoneResponseBody, err error)
func (*PowerpackService) List_shortcodes ¶
func (service *PowerpackService) List_shortcodes() (response *ShortCodeResponse, err error)
func (*PowerpackService) List_tollfree ¶
func (service *PowerpackService) List_tollfree() (response *TollfreeResponse, err error)
func (*PowerpackService) Remove_number ¶
func (service *PowerpackService) Remove_number(number string, param NumberRemoveParams) (response *NumberDeleteResponse, err error)
func (*PowerpackService) Remove_shortcode ¶
func (service *PowerpackService) Remove_shortcode(shortcode string) (response *ShortcodeDeleteResponse, err error)
func (*PowerpackService) Remove_tollfree ¶
func (service *PowerpackService) Remove_tollfree(tollfree string, param NumberRemoveParams) (response *TollfreeDeleteResponse, err error)
func (*PowerpackService) Update ¶
func (service *PowerpackService) Update(params PowerackUpdateParams) (response *PowerpackUpdateResponse, err error)
type PowerpackUpdateResponse ¶
type PowerpackUpdateResponse struct {
PowerpackCreateResponseBody
}
type Pricing ¶
type Pricing struct { APIID string `json:"api_id" url:"api_id"` Country string `json:"country" url:"country"` CountryCode int `json:"country_code" url:"country_code"` CountryISO string `json:"country_iso" url:"country_iso"` Message struct { Inbound struct { Rate string `json:"rate" url:"rate"` } `json:"inbound" url:"inbound"` Outbound struct { Rate string `json:"rate" url:"rate"` } `json:"outbound" url:"outbound"` OutboundNetworksList []struct { GroupName string `json:"group_name" url:"group_name"` Rate string `json:"rate" url:"rate"` } `json:"outbound_networks_list" url:"outbound_networks_list"` } `json:"message" url:"message"` PhoneNumbers struct { Local struct { Rate string `json:"rate" url:"rate"` } `json:"local" url:"local"` Tollfree struct { Rate string `json:"rate" url:"rate"` } `json:"tollfree" url:"tollfree"` } `json:"phone_numbers" url:"phone_numbers"` Voice struct { Inbound struct { IP struct { Rate string `json:"rate" url:"rate"` } `json:"ip" url:"ip"` Local struct { Rate string `json:"rate" url:"rate"` } `json:"local" url:"local"` Tollfree struct { Rate string `json:"rate" url:"rate"` } `json:"tollfree" url:"tollfree"` } `json:"inbound" url:"inbound"` Outbound struct { IP struct { Rate string `json:"rate" url:"rate"` } `json:"ip" url:"ip"` Local struct { Rate string `json:"rate" url:"rate"` } `json:"local" url:"local"` Rates []struct { OriginationPrefix []string `json:"origination_prefix" url:"origination_prefix"` Prefix []string `json:"prefix" url:"prefix"` Rate string `json:"rate" url:"rate"` VoiceNetworkGroup string `json:"voice_network_group" url:"voice_network_group"` } `json:"rates" url:"rates"` Tollfree struct { Rate string `json:"rate" url:"rate"` } `json:"tollfree" url:"tollfree"` } `json:"outbound" url:"outbound"` } `json:"voice" url:"voice"` }
type PricingGetParams ¶
type PricingGetParams struct {
CountryISO string `json:"country_iso" url:"country_iso"`
}
type PricingService ¶
type PricingService struct {
// contains filtered or unexported fields
}
type QueuedCall ¶
type QueuedCall struct { From string `json:"from,omitempty" url:"from,omitempty"` To string `json:"to,omitempty" url:"to,omitempty"` Status string `json:"call_status,omitempty" url:"call_status,omitempty"` CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` CallerName string `json:"caller_name,omitempty" url:"caller_name,omitempty"` APIID string `json:"api_id,omitempty" url:"api_id,omitempty"` Direction string `json:"direction,omitempty" url:"direction,omitempty"` RequestUUID string `json:"request_uuid,omitempty" url:"request_uuid,omitempty"` }
type QueuedCallService ¶
type QueuedCallService struct {
// contains filtered or unexported fields
}
func (*QueuedCallService) Get ¶
func (service *QueuedCallService) Get(QueuedCallId string) (response *QueuedCall, err error)
func (*QueuedCallService) IDList ¶
func (service *QueuedCallService) IDList() (response *QueuedCallIDListResponse, err error)
type Recording ¶
type Recording struct { AddTime string `json:"add_time,omitempty" url:"add_time,omitempty"` CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` RecordingID string `json:"recording_id,omitempty" url:"recording_id,omitempty"` RecordingType string `json:"recording_type,omitempty" url:"recording_type,omitempty"` RecordingFormat string `json:"recording_format,omitempty" url:"recording_format,omitempty"` ConferenceName string `json:"conference_name,omitempty" url:"conference_name,omitempty"` RecordingURL string `json:"recording_url,omitempty" url:"recording_url,omitempty"` ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` RecordingStartMS string `json:"recording_start_ms,omitempty" url:"recording_start_ms,omitempty"` RecordingEndMS string `json:"recording_end_ms,omitempty" url:"recording_end_ms,omitempty"` RecordingDurationMS string `json:"recording_duration_ms,omitempty" url:"recording_duration_ms,omitempty"` }
type RecordingListParams ¶
type RecordingListParams struct { // Query parameters. Subaccount string `json:"subaccount,omitempty" url:"subaccount,omitempty"` CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` AddTimeEquals string `json:"add_time,omitempty" url:"add_time,omitempty"` AddTimeLessThan string `json:"add_time__lt,omitempty" url:"add_time__lt,omitempty"` AddTimeGreaterThan string `json:"add_time__gt,omitempty" url:"add_time__gt,omitempty"` AddTimeLessOrEqual string `json:"add_time__lte,omitempty" url:"add_time__lte,omitempty"` AddTimeGreaterOrEqual string `json:"add_time__gte,omitempty" url:"add_time__gte,omitempty"` Limit int64 `json:"limit:omitempty" url:"limit:omitempty"` Offset int64 `json:"offset:omitempty" url:"offset:omitempty"` }
type RecordingListResponse ¶
type RecordingService ¶
type RecordingService struct {
// contains filtered or unexported fields
}
func (*RecordingService) Delete ¶
func (service *RecordingService) Delete(RecordingId string) (err error)
func (*RecordingService) Get ¶
func (service *RecordingService) Get(RecordingId string) (response *Recording, err error)
func (*RecordingService) List ¶
func (service *RecordingService) List(params RecordingListParams) (response *RecordingListResponse, err error)
type RentNumber ¶
type ShortCodeResponse ¶
type ShortCodeResponse struct { BaseListPPKResponse Objects []ShortCode `json:"objects" url:"objects"` }
type ShortcodeDeleteResponse ¶
type ShortcodeDeleteResponse struct {
PowerpackDeleteResponse
}
type Subaccount ¶
type Subaccount struct { Account string `json:"account,omitempty" url:"account,omitempty"` ApiID string `json:"api_id,omitempty" url:"api_id,omitempty"` AuthID string `json:"auth_id,omitempty" url:"auth_id,omitempty"` AuthToken string `json:"auth_token,omitempty" url:"auth_token,omitempty"` Created string `json:"created,omitempty" url:"created,omitempty"` Modified string `json:"modified,omitempty" url:"modified,omitempty"` Name string `json:"name,omitempty" url:"name,omitempty"` Enabled bool `json:"enabled,omitempty" url:"enabled,omitempty"` ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` }
func (Subaccount) ID ¶
func (self Subaccount) ID() string
type SubaccountCreateParams ¶
type SubaccountCreateResponse ¶
type SubaccountCreateResponse struct { BaseResponse AuthId string `json:"auth_id" url:"auth_id"` AuthToken string `json:"auth_token" url:"auth_token"` }
type SubaccountDeleteParams ¶
type SubaccountDeleteParams struct {
Cascade bool `json:"cascade,omitempty" url:"cascade,omitempty"` // Specify if the sub account should be cascade deleted or not. Takes a value of True or False. Defaults to False
}
type SubaccountList ¶
type SubaccountList struct { BaseListResponse Objects []Subaccount }
type SubaccountListParams ¶
type SubaccountService ¶
type SubaccountService struct {
// contains filtered or unexported fields
}
func (*SubaccountService) Create ¶
func (service *SubaccountService) Create(params SubaccountCreateParams) (response *SubaccountCreateResponse, err error)
func (*SubaccountService) Delete ¶
func (service *SubaccountService) Delete(subauthId string, data ...SubaccountDeleteParams) (err error)
func (*SubaccountService) Get ¶
func (service *SubaccountService) Get(subauthId string) (response *Subaccount, err error)
func (*SubaccountService) List ¶
func (service *SubaccountService) List(params SubaccountListParams) (response *SubaccountList, err error)
func (*SubaccountService) Update ¶
func (service *SubaccountService) Update(subauthId string, params SubaccountUpdateParams) (response *SubaccountUpdateResponse, err error)
type SubaccountUpdateParams ¶
type SubaccountUpdateParams SubaccountCreateParams
type SubaccountUpdateResponse ¶
type SubaccountUpdateResponse BaseResponse
type SubmitComplianceApplicationResponse ¶
type SubmitComplianceApplicationResponse struct { APIID string `json:"api_id"` CreatedAt time.Time `json:"created_at"` ComplianceApplicationID string `json:"compliance_application_id"` Alias string `json:"alias"` Status string `json:"status"` EndUserType string `json:"end_user_type"` CountryIso2 string `json:"country_iso2"` NumberType string `json:"number_type"` EndUserID string `json:"end_user_id"` ComplianceRequirementID string `json:"compliance_requirement_id"` Documents []struct { DocumentID string `json:"document_id"` Name string `json:"name"` DocumentName string `json:"document_name,omitempty"` DocumentTypeID string `json:"document_type_id,omitempty"` DocumentTypeName string `json:"document_type_name,omitempty"` Scope string `json:"scope,omitempty"` } `json:"documents"` }
type TollfreeDeleteResponse ¶
type TollfreeDeleteResponse struct {
PowerpackDeleteResponse
}
type TollfreeResponse ¶
type TollfreeResponse struct { BaseListPPKResponse Objects []Tollfree `json:"objects" url:"objects"` }
type UpdateComplianceApplicationResponse ¶
type UpdateComplianceApplicationResponse BaseResponse
type UpdateComplianceDocumentParams ¶
type UpdateComplianceDocumentParams struct { ComplianceDocumentID string `json:compliance_document_id` CreateComplianceDocumentParams }
type UpdateComplianceDocumentResponse ¶
type UpdateComplianceDocumentResponse BaseResponse
type UpdateEndUserParams ¶
type UpdateEndUserParams struct { EndUserParams EndUserID string `json:"end_user_id"` }
type UpdateEndUserResponse ¶
type UpdateEndUserResponse BaseResponse
Source Files ¶
- accounts.go
- applications.go
- base_resources.go
- baseclient.go
- call_feedback.go
- calls.go
- common.go
- compliance_applications.go
- compliance_document_types.go
- compliance_documents.go
- compliance_requirements.go
- conferences.go
- end_users.go
- endpoints.go
- lookup.go
- media.go
- messages.go
- multipartycall.go
- nodes.go
- numbers.go
- phloclient.go
- phlos.go
- plivoclient.go
- powerpacks.go
- pricing.go
- recordings.go
- utils.go
- validators.go