-
Notifications
You must be signed in to change notification settings - Fork 5
/
api_op_client.go
43 lines (35 loc) · 1.27 KB
/
api_op_client.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
// Package calls contains auto-generated files. DO NOT MODIFY
package calls
import (
"github.com/RJPearson94/twilio-sdk-go/client"
"github.com/RJPearson94/twilio-sdk-go/service/api/v2010/account/calls/feedback_summaries"
"github.com/RJPearson94/twilio-sdk-go/service/api/v2010/account/calls/feedback_summary"
)
// Client for managing call resources
// See https://www.twilio.com/docs/voice/api/call-resource for more details
type Client struct {
client *client.Client
accountSid string
FeedbackSummaries *feedback_summaries.Client
FeedbackSummary func(string) *feedback_summary.Client
}
// ClientProperties are the properties required to manage the calls resources
type ClientProperties struct {
AccountSid string
}
// New creates a new instance of the calls client
func New(client *client.Client, properties ClientProperties) *Client {
return &Client{
client: client,
accountSid: properties.AccountSid,
FeedbackSummaries: feedback_summaries.New(client, feedback_summaries.ClientProperties{
AccountSid: properties.AccountSid,
}),
FeedbackSummary: func(feedbackSummarySid string) *feedback_summary.Client {
return feedback_summary.New(client, feedback_summary.ClientProperties{
AccountSid: properties.AccountSid,
Sid: feedbackSummarySid,
})
},
}
}