Documentation
¶
Index ¶
- func NewMoceanClient(apiKey, apiSecret string) *mocean
- func SdkVersion() string
- type CommandMcBuilderService
- type McBuilderService
- type McCollect
- type McDial
- type McPlay
- type McRecord
- type McSay
- type McSleep
- type SendSMS
- type TgContent
- type TgFrom
- type TgKeyboard
- type TgRequestContact
- type TgSendAnimation
- type TgSendAudio
- type TgSendDocument
- type TgSendPhoto
- type TgSendText
- type TgSendVideo
- type TgTo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMoceanClient ¶
func NewMoceanClient(apiKey, apiSecret string) *mocean
Types ¶
type CommandMcBuilderService ¶
type CommandMcBuilderService struct {
// contains filtered or unexported fields
}
builder
func (*CommandMcBuilderService) Add ¶
func (s *CommandMcBuilderService) Add(mc interface{}) *CommandMcBuilderService
Add
func (*CommandMcBuilderService) Build ¶
func (s *CommandMcBuilderService) Build() (string, error)
type McBuilderService ¶
type McBuilderService struct {
// contains filtered or unexported fields
}
builder
func (*McBuilderService) Add ¶
func (s *McBuilderService) Add(mc interface{}) *McBuilderService
func (*McBuilderService) Build ¶
func (s *McBuilderService) Build() (string, error)
type McCollect ¶
type McCollect struct {
Action string `json:"action"`
EventURL string `json:"event-url"`
Min int `json:"min"`
Max int `json:"max"`
Terminators string `json:"terminators"`
Timeout int `json:"timeout"`
}
McCollect
type McDial ¶
type McDial struct {
Action string `json:"action"`
To string `json:"to"`
From string `json:"from"`
DialSequentially bool `json:"dial-sequentially"`
}
McDial
type McPlay ¶
type McPlay struct {
Action string `json:"action"`
File string `json:"file"`
BargeIn bool `json:"barge-in"`
ClearDigitCache bool `json:"clear-digit-cache"`
}
McPlay
type McSay ¶
type McSay struct {
Action string `json:"action"`
Language string `json:"language"`
Text string `json:"text"`
BargeIn bool `json:"barge-in"`
ClearDigitCache bool `json:"clear-digit-cache"`
}
McSay
type SendSMS ¶
type TgContent ¶
type TgContent struct {
Type string `json:"type"`
Text interface{} `json:"text"`
RichMediaUrl interface{} `json:"rich_media_url,omitempty"`
}
type TgKeyboard ¶
type TgRequestContact ¶
type TgRequestContact struct {
Action string `json:"action"`
From TgFrom `json:"from"`
To TgTo `json:"to"`
Content TgContent `json:"content"`
TgKeyboard TgKeyboard `json:tg_keyboard`
}
func MakeTgRequestContact ¶
func MakeTgRequestContact(from string, to string, text string, opt ...string) *TgRequestContact
MakeTgRequestContact
type TgSendAnimation ¶
type TgSendAnimation struct {
Action string `json:"action"`
From TgFrom `json:"from"`
To TgTo `json:"to"`
Content TgContent `json:"content"`
}
func MakeTgSendAnimation ¶
func MakeTgSendAnimation(from string, to string, url string, opt ...string) *TgSendAnimation
MakeTgSendAnimation
type TgSendAudio ¶
type TgSendAudio struct {
Action string `json:"action"`
From TgFrom `json:"from"`
To TgTo `json:"to"`
Content TgContent `json:"content"`
}
func MakeTgSendAudio ¶
func MakeTgSendAudio(from string, to string, url string, opt ...string) *TgSendAudio
MakeTgSendAudio
type TgSendDocument ¶
type TgSendDocument struct {
Action string `json:"action"`
From TgFrom `json:"from"`
To TgTo `json:"to"`
Content TgContent `json:"content"`
}
func MakeTgSendDocument ¶
func MakeTgSendDocument(from string, to string, url string, opt ...string) *TgSendDocument
MakeTgSendDocument
type TgSendPhoto ¶
type TgSendPhoto struct {
Action string `json:"action"`
From TgFrom `json:"from"`
To TgTo `json:"to"`
Content TgContent `json:"content"`
}
func MakeTgSendPhoto ¶
func MakeTgSendPhoto(from string, to string, url string, opt ...string) *TgSendPhoto
MakeTgSendPhoto
type TgSendText ¶
type TgSendText struct {
Action string `json:"action"`
From TgFrom `json:"from"`
To TgTo `json:"to"`
Content TgContent `json:"content"`
}
TgSendText
func MakeTgSendText ¶
func MakeTgSendText(from string, to string, text string) *TgSendText
MakeTgSendText
type TgSendVideo ¶
type TgSendVideo struct {
Action string `json:"action"`
From TgFrom `json:"from"`
To TgTo `json:"to"`
Content TgContent `json:"content"`
}
func MakeTgSendVideo ¶
func MakeTgSendVideo(from string, to string, url string, opt ...string) *TgSendVideo
MakeTgSendVideo
Click to show internal directories.
Click to hide internal directories.