-
Notifications
You must be signed in to change notification settings - Fork 1
/
structures.go
62 lines (55 loc) · 1.28 KB
/
structures.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package calltools
import (
"net/url"
"time"
)
const (
bitSize64 int = 64
baseUrl string = "https://zvonok.com/manager/cabapi_external/api/v1"
pathUsersBalance = baseUrl + "/users/balance"
pathPhonesCall = baseUrl + "/phones/call"
pathCallsByPhone = baseUrl + "/phones/calls_by_phone"
pathCallById = baseUrl + "/phones/call_by_id"
pathRemoveCall = baseUrl + "/phones/remove_call"
)
type Client struct {
ApiPublicKey string
}
type AddCall struct {
CallId int
Balance float64
PhoneNumber string
Created time.Time
}
type IvrData struct {
IvrNum int
Webhook string
SmsName string
SmsText string
ToPhone string
ButtonNum int
ToSipname string
ActionType int
StatusName string
RecognizeNum string
FollowIvrNum string
}
type Call struct {
PhoneNumber string
Status string
CallId int
Created time.Time
Updated time.Time
Duration int
IvrData []IvrData
Completed time.Time
ButtonNum int
ActionType string
DialStatus int
UserChoice string
AudioclipId int
RecordedAudio *url.URL
StatusDisplay string
UserChoiceDisplay string
DialStatusDisplay string
}