-
Notifications
You must be signed in to change notification settings - Fork 103
/
participants.go
27 lines (23 loc) · 938 Bytes
/
participants.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
package twilio
// It's difficult to work on this API since Twilio doesn't return Participants
// after a conference ends.
//
// https://github.com/saintpete/logrole/issues/4
type ParticipantService struct {
client *Client
}
type Participant struct {
AccountSid string `json:"account_sid"`
CallSid string `json:"call_sid"`
ConferenceSid string `json:"conference_sid"`
DateCreated TwilioTime `json:"date_created"`
DateUpdated TwilioTime `json:"date_updated"`
EndConferenceOnExit bool `json:"end_conference_on_exit"`
Hold bool `json:"hold"`
Muted bool `json:"muted"`
StartConferenceOnEnter bool `json:"start_conference_on_enter"`
URI string `json:"uri"`
}
func participantPathPart(conferenceSid string) string {
return "Conferences/" + conferenceSid + "/Participants"
}