Documentation ¶
Index ¶
- type AccountService
- func (__receiver_AService *AccountService) Create() *AccountService
- func (__receiver_AService *AccountService) Details(details resources.AccountDetails) *AccountService
- func (__receiver_AService *AccountService) Filter(filter resources.AccountFilter) *AccountService
- func (__receiver_AService *AccountService) Get() *AccountService
- func (__receiver_AService *AccountService) ID(id string) *AccountService
- func (__receiver_AService *AccountService) Update() *AccountService
- func (__receiver_AService *AccountService) UpdateDetails(details resources.AccountUpdatableDetails) *AccountService
- type AvailablePhoneNumberService
- func (__receiver_AService *AvailablePhoneNumberService) Filter(filter resources.AvailablePhoneNumberFilter) *AvailablePhoneNumberService
- func (__receiver_AService *AvailablePhoneNumberService) Get() *AvailablePhoneNumberService
- func (__receiver_AService *AvailablePhoneNumberService) ID(id string) *AvailablePhoneNumberService
- type CallService
- func (__receiver_CService *CallService) Create() *CallService
- func (__receiver_CService *CallService) Details(details resources.CallDetails) *CallService
- func (__receiver_CService *CallService) Filter(filter resources.CallFilter) *CallService
- func (__receiver_CService *CallService) Get() *CallService
- func (__receiver_CService *CallService) ID(id string) *CallService
- type Client
- func (c *Client) Account() *AccountService
- func (c *Client) AvailablePhoneNumber() *AvailablePhoneNumberService
- func (c *Client) Call() *CallService
- func (c *Client) Debug(debug bool) *Client
- func (c *Client) Do() (status int, result map[string]interface{}, err error)
- func (c *Client) IncomingPhoneNumber() *IncomingPhoneNumberService
- func (c Client) IsValidAction() (ok bool, err error)
- func (c Client) IsValidCredentials() (ok bool, err error)
- func (c Client) IsValidData() (ok bool, err error)
- func (c *Client) OutgoingCallerID() *OutgoingCallerIDService
- func (c *Client) Recording() *RecordingService
- func (c *Client) SetAccountSid(accountSid string) *Client
- func (c *Client) SetBaseURL(url string) *Client
- func (c *Client) SetLogger(logger *log.Logger) *Client
- func (c *Client) SetUserName(userName string) *Client
- type IncomingPhoneNumberService
- func (__receiver_IService *IncomingPhoneNumberService) Create() *IncomingPhoneNumberService
- func (__receiver_IService *IncomingPhoneNumberService) Delete() *IncomingPhoneNumberService
- func (__receiver_IService *IncomingPhoneNumberService) Details(details resources.IncomingPhoneNumberDetails) *IncomingPhoneNumberService
- func (__receiver_IService *IncomingPhoneNumberService) Filter(filter resources.IncomingPhoneNumberFilter) *IncomingPhoneNumberService
- func (__receiver_IService *IncomingPhoneNumberService) Get() *IncomingPhoneNumberService
- func (__receiver_IService *IncomingPhoneNumberService) ID(id string) *IncomingPhoneNumberService
- func (__receiver_IService *IncomingPhoneNumberService) Update() *IncomingPhoneNumberService
- func (__receiver_IService *IncomingPhoneNumberService) UpdateDetails(details resources.IncomingPhoneNumberUpdatableDetails) *IncomingPhoneNumberService
- type OutgoingCallerIDService
- func (__receiver_OService *OutgoingCallerIDService) Create() *OutgoingCallerIDService
- func (__receiver_OService *OutgoingCallerIDService) Delete() *OutgoingCallerIDService
- func (__receiver_OService *OutgoingCallerIDService) Details(details resources.OutgoingCallerIDDetails) *OutgoingCallerIDService
- func (__receiver_OService *OutgoingCallerIDService) Filter(filter resources.OutgoingCallerIDFilter) *OutgoingCallerIDService
- func (__receiver_OService *OutgoingCallerIDService) Get() *OutgoingCallerIDService
- func (__receiver_OService *OutgoingCallerIDService) ID(id string) *OutgoingCallerIDService
- type RecordingService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type AccountService struct {
Client
}
AccountService is the struct that defines the account information and has fubnctions to perform account level
func (*AccountService) Create ¶
func (__receiver_AService *AccountService) Create() *AccountService
Create sets the action as create
func (*AccountService) Details ¶
func (__receiver_AService *AccountService) Details(details resources.AccountDetails) *AccountService
Details set the resource details for create resource requests
func (*AccountService) Filter ¶
func (__receiver_AService *AccountService) Filter(filter resources.AccountFilter) *AccountService
Filter set the filter for read operation for read
func (*AccountService) Get ¶
func (__receiver_AService *AccountService) Get() *AccountService
Get sets the action as types.READ
func (*AccountService) ID ¶
func (__receiver_AService *AccountService) ID(id string) *AccountService
ID sets the id for the resource request
func (*AccountService) Update ¶
func (__receiver_AService *AccountService) Update() *AccountService
Update sets the action as update
func (*AccountService) UpdateDetails ¶
func (__receiver_AService *AccountService) UpdateDetails(details resources.AccountUpdatableDetails) *AccountService
UpdateDetails sets the details to be updated for the resource
type AvailablePhoneNumberService ¶
type AvailablePhoneNumberService struct {
Client
}
AvailablePhoneNumberService is the struct that defines the availablephonenumber information and has fubnctions to perform availablephonenumber level
func (*AvailablePhoneNumberService) Filter ¶
func (__receiver_AService *AvailablePhoneNumberService) Filter(filter resources.AvailablePhoneNumberFilter) *AvailablePhoneNumberService
Filter set the filter for read operation for read
func (*AvailablePhoneNumberService) Get ¶
func (__receiver_AService *AvailablePhoneNumberService) Get() *AvailablePhoneNumberService
Get sets the action as types.READ
func (*AvailablePhoneNumberService) ID ¶
func (__receiver_AService *AvailablePhoneNumberService) ID(id string) *AvailablePhoneNumberService
ID sets the id for the resource request
type CallService ¶
type CallService struct {
Client
}
CallService is the struct that defines the call information and has fubnctions to perform call level
func (*CallService) Create ¶
func (__receiver_CService *CallService) Create() *CallService
Create sets the action as create
func (*CallService) Details ¶
func (__receiver_CService *CallService) Details(details resources.CallDetails) *CallService
Details set the resource details for create resource requests
func (*CallService) Filter ¶
func (__receiver_CService *CallService) Filter(filter resources.CallFilter) *CallService
Filter set the filter for read operation for read
func (*CallService) Get ¶
func (__receiver_CService *CallService) Get() *CallService
Get sets the action as types.READ
func (*CallService) ID ¶
func (__receiver_CService *CallService) ID(id string) *CallService
ID sets the id for the resource request
type Client ¶
type Client struct { AccountSid string `url:"AccountSid"` UserName string ResourceID string `url:"ResourceID"` Credentials types.Credentials // contains filtered or unexported fields }
Client is the iam client struct that calls all the other services
func (*Client) Account ¶
func (c *Client) Account() *AccountService
Account returns an instance of AccountService
func (*Client) AvailablePhoneNumber ¶
func (c *Client) AvailablePhoneNumber() *AvailablePhoneNumberService
AvailablePhoneNumber returns an instance of AvailablePhoneNumberService
func (*Client) IncomingPhoneNumber ¶
func (c *Client) IncomingPhoneNumber() *IncomingPhoneNumberService
IncomingPhoneNumber returns an instance of IncomingPhoneNumberService
func (Client) IsValidAction ¶
IsValidAction Checks if there are enough details for the execution It checks for if an action is set and if set is it a valid action on that resources For example if a resource does not accept POST then action being POST would return error
func (Client) IsValidCredentials ¶
IsValidCredentials Checks if the available credentials are valid or not checks if credentials are provided ,it does not check if the provided credentials are valid or not
func (Client) IsValidData ¶
IsValidData checks if the data is valid or not It uses the tag `mandatory` to see if a field is mandatory or not
func (*Client) OutgoingCallerID ¶
func (c *Client) OutgoingCallerID() *OutgoingCallerIDService
OutgoingCallerID returns an instance of OutgoingCallerIDService
func (*Client) Recording ¶
func (c *Client) Recording() *RecordingService
Recording returns an instance of RecordingService
func (*Client) SetAccountSid ¶
SetAccountSid sets the account sid of the user
func (*Client) SetBaseURL ¶
SetBaseURL sets the base url for making api requests
func (*Client) SetUserName ¶
SetUserName sets the user name of the user
type IncomingPhoneNumberService ¶
type IncomingPhoneNumberService struct {
Client
}
IncomingPhoneNumberService is the struct that defines the incomingphonenumber information and has fubnctions to perform incomingphonenumber level
func (*IncomingPhoneNumberService) Create ¶
func (__receiver_IService *IncomingPhoneNumberService) Create() *IncomingPhoneNumberService
Create sets the action as create
func (*IncomingPhoneNumberService) Delete ¶
func (__receiver_IService *IncomingPhoneNumberService) Delete() *IncomingPhoneNumberService
Delete sets the action as types.DELETE
func (*IncomingPhoneNumberService) Details ¶
func (__receiver_IService *IncomingPhoneNumberService) Details(details resources.IncomingPhoneNumberDetails) *IncomingPhoneNumberService
Details set the resource details for create resource requests
func (*IncomingPhoneNumberService) Filter ¶
func (__receiver_IService *IncomingPhoneNumberService) Filter(filter resources.IncomingPhoneNumberFilter) *IncomingPhoneNumberService
Filter set the filter for read operation for read
func (*IncomingPhoneNumberService) Get ¶
func (__receiver_IService *IncomingPhoneNumberService) Get() *IncomingPhoneNumberService
Get sets the action as types.READ
func (*IncomingPhoneNumberService) ID ¶
func (__receiver_IService *IncomingPhoneNumberService) ID(id string) *IncomingPhoneNumberService
ID sets the id for the resource request
func (*IncomingPhoneNumberService) Update ¶
func (__receiver_IService *IncomingPhoneNumberService) Update() *IncomingPhoneNumberService
Update sets the action as update
func (*IncomingPhoneNumberService) UpdateDetails ¶
func (__receiver_IService *IncomingPhoneNumberService) UpdateDetails(details resources.IncomingPhoneNumberUpdatableDetails) *IncomingPhoneNumberService
UpdateDetails sets the details to be updated for the resource
type OutgoingCallerIDService ¶
type OutgoingCallerIDService struct {
Client
}
OutgoingCallerIDService is the struct that defines the outgoingcallerid information and has fubnctions to perform outgoingcallerid level
func (*OutgoingCallerIDService) Create ¶
func (__receiver_OService *OutgoingCallerIDService) Create() *OutgoingCallerIDService
Create sets the action as create
func (*OutgoingCallerIDService) Delete ¶
func (__receiver_OService *OutgoingCallerIDService) Delete() *OutgoingCallerIDService
Delete sets the action as types.DELETE
func (*OutgoingCallerIDService) Details ¶
func (__receiver_OService *OutgoingCallerIDService) Details(details resources.OutgoingCallerIDDetails) *OutgoingCallerIDService
Details set the resource details for create resource requests
func (*OutgoingCallerIDService) Filter ¶
func (__receiver_OService *OutgoingCallerIDService) Filter(filter resources.OutgoingCallerIDFilter) *OutgoingCallerIDService
Filter set the filter for read operation for read
func (*OutgoingCallerIDService) Get ¶
func (__receiver_OService *OutgoingCallerIDService) Get() *OutgoingCallerIDService
Get sets the action as types.READ
func (*OutgoingCallerIDService) ID ¶
func (__receiver_OService *OutgoingCallerIDService) ID(id string) *OutgoingCallerIDService
ID sets the id for the resource request
type RecordingService ¶
type RecordingService struct {
Client
}
RecordingService is the struct that defines the recording information and has fubnctions to perform recording level
func (*RecordingService) Filter ¶
func (__receiver_RService *RecordingService) Filter(filter resources.RecordingFilter) *RecordingService
Filter set the filter for read operation for read
func (*RecordingService) Get ¶
func (__receiver_RService *RecordingService) Get() *RecordingService
Get sets the action as types.READ
func (*RecordingService) ID ¶
func (__receiver_RService *RecordingService) ID(id string) *RecordingService
ID sets the id for the resource request