Documentation ¶
Index ¶
- type ApiService
- type FrontlineV1User
- type UpdateUserParams
- func (params *UpdateUserParams) SetAvatar(Avatar string) *UpdateUserParams
- func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUserParams
- func (params *UpdateUserParams) SetIsAvailable(IsAvailable bool) *UpdateUserParams
- func (params *UpdateUserParams) SetState(State string) *UpdateUserParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiService ¶ added in v0.11.0
type ApiService struct {
// contains filtered or unexported fields
}
func NewApiService ¶ added in v0.11.0
func NewApiService(requestHandler *twilio.RequestHandler) *ApiService
func NewApiServiceWithClient ¶ added in v0.11.0
func NewApiServiceWithClient(client twilio.BaseClient) *ApiService
func (*ApiService) FetchUser ¶ added in v0.11.0
func (c *ApiService) FetchUser(Sid string) (*FrontlineV1User, error)
Fetch a frontline user
func (*ApiService) UpdateUser ¶ added in v0.11.0
func (c *ApiService) UpdateUser(Sid string, params *UpdateUserParams) (*FrontlineV1User, error)
Update an existing frontline user
type FrontlineV1User ¶
type FrontlineV1User struct { // The unique string that identifies the resource Sid *string `json:"sid,omitempty"` // The string that identifies the resource's User Identity *string `json:"identity,omitempty"` // The string that you assigned to describe the User FriendlyName *string `json:"friendly_name,omitempty"` // The avatar URL which will be shown in Frontline application Avatar *string `json:"avatar,omitempty"` State *string `json:"state,omitempty"` // Whether the User is available for new conversations IsAvailable *bool `json:"is_available,omitempty"` // An absolute URL for this user. Url *string `json:"url,omitempty"` }
FrontlineV1User struct for FrontlineV1User
type UpdateUserParams ¶
type UpdateUserParams struct { // The string that you assigned to describe the User. FriendlyName *string `json:"FriendlyName,omitempty"` // The avatar URL which will be shown in Frontline application. Avatar *string `json:"Avatar,omitempty"` // State *string `json:"State,omitempty"` // Whether the User is available for new conversations. Set to `false` to prevent User from receiving new inbound conversations if you are using [Pool Routing](https://www.twilio.com/docs/frontline/handle-incoming-conversations#3-pool-routing). IsAvailable *bool `json:"IsAvailable,omitempty"` }
Optional parameters for the method 'UpdateUser'
func (*UpdateUserParams) SetAvatar ¶
func (params *UpdateUserParams) SetAvatar(Avatar string) *UpdateUserParams
func (*UpdateUserParams) SetFriendlyName ¶
func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUserParams
func (*UpdateUserParams) SetIsAvailable ¶ added in v0.18.1
func (params *UpdateUserParams) SetIsAvailable(IsAvailable bool) *UpdateUserParams
func (*UpdateUserParams) SetState ¶
func (params *UpdateUserParams) SetState(State string) *UpdateUserParams
Click to show internal directories.
Click to hide internal directories.