-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.go
80 lines (77 loc) · 2.63 KB
/
main.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package mixmax
import (
"github.com/ghmeier/go-mixmax/appointmentlinks"
"github.com/ghmeier/go-mixmax/availability"
"github.com/ghmeier/go-mixmax/client"
"github.com/ghmeier/go-mixmax/codesnippet"
"github.com/ghmeier/go-mixmax/contactgroups"
"github.com/ghmeier/go-mixmax/contacts"
"github.com/ghmeier/go-mixmax/events"
"github.com/ghmeier/go-mixmax/filerequests"
"github.com/ghmeier/go-mixmax/integrations"
"github.com/ghmeier/go-mixmax/messages"
"github.com/ghmeier/go-mixmax/polls"
"github.com/ghmeier/go-mixmax/qa"
"github.com/ghmeier/go-mixmax/reminders"
"github.com/ghmeier/go-mixmax/rules"
"github.com/ghmeier/go-mixmax/send"
"github.com/ghmeier/go-mixmax/sequences"
"github.com/ghmeier/go-mixmax/snippets"
"github.com/ghmeier/go-mixmax/snippettags"
"github.com/ghmeier/go-mixmax/teams"
"github.com/ghmeier/go-mixmax/unsubscribes"
"github.com/ghmeier/go-mixmax/userpreferences"
"github.com/ghmeier/go-mixmax/users"
"github.com/ghmeier/go-mixmax/yesno"
)
type Client struct {
AppointmentLinks *appointmentlinks.Client
Availability *availability.Client
CodeSnippet *codesnippet.Client
Contacts *contacts.Client
ContactGroups *contactgroups.Client
Events *events.Client
FileRequests *filerequests.Client
Integrations *integrations.Client
Messages *messages.Client
Polls *polls.Client
QAs *qa.Client
Reminders *reminders.Client
Rules *rules.Client
Send *send.Client
Sequences *sequences.Client
Snippets *snippets.Client
SnippetTags *snippettags.Client
Teams *teams.Client
Unsubscribes *unsubscribes.Client
UserPreferences *userpreferences.Client
Users *users.Client
YesNo *yesno.Client
}
func New(key string) *Client {
c := new(Client)
client := client.New(key)
c.AppointmentLinks = appointmentlinks.New(client)
c.Availability = availability.New(client)
c.CodeSnippet = codesnippet.New(client)
c.Contacts = contacts.New(client)
c.ContactGroups = contactgroups.New(client)
c.Events = events.New(client)
c.FileRequests = filerequests.New(client)
c.Integrations = integrations.New(client)
c.Messages = messages.New(client)
c.Polls = polls.New(client)
c.QAs = qa.New(client)
c.Reminders = reminders.New(client)
c.Rules = rules.New(client)
c.Send = send.New(client)
c.Sequences = sequences.New(client)
c.Snippets = snippets.New(client)
c.SnippetTags = snippettags.New(client)
c.Teams = teams.New(client)
c.Unsubscribes = unsubscribes.New(client)
c.UserPreferences = userpreferences.New(client)
c.Users = users.New(client)
c.YesNo = yesno.New(client)
return c
}