calendlyr 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (209) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +7 -8
  3. data/CHANGELOG.md +2 -2
  4. data/README.md +46 -127
  5. data/calendlyr.gemspec +0 -1
  6. data/docs/resources/activity_log/list_activity_log_entries.md +34 -0
  7. data/docs/resources/availabilities/availability_rule.md +5 -0
  8. data/docs/resources/availabilities/user_availability_schedule.md +50 -0
  9. data/docs/resources/availabilities/user_busy_time.md +28 -0
  10. data/docs/resources/data_compliance.md +19 -0
  11. data/docs/resources/event_types/available_time.md +21 -0
  12. data/docs/resources/event_types/event_type.md +55 -0
  13. data/docs/resources/event_types/membership.md +29 -0
  14. data/docs/resources/event_types/profile.md +13 -0
  15. data/docs/resources/events/cancellation.md +18 -0
  16. data/docs/resources/events/event.md +62 -0
  17. data/docs/resources/events/guest.md +5 -0
  18. data/docs/resources/events/invitee.md +28 -0
  19. data/docs/resources/events/invitee_no_show.md +49 -0
  20. data/docs/resources/groups/group.md +56 -0
  21. data/docs/resources/groups/relationship.md +54 -0
  22. data/docs/resources/organizations/invitation.md +65 -0
  23. data/docs/resources/organizations/membership.md +58 -0
  24. data/docs/resources/organizations/organization.md +149 -0
  25. data/docs/resources/pagination.md +21 -0
  26. data/docs/resources/routing_forms/routing_form.md +48 -0
  27. data/docs/resources/routing_forms/submission.md +40 -0
  28. data/docs/resources/scheduling_link.md +26 -0
  29. data/docs/resources/share.md +28 -0
  30. data/docs/resources/user.md +111 -0
  31. data/docs/resources/webhooks/invitee_payload.md +42 -0
  32. data/docs/resources/webhooks/payload.md +5 -0
  33. data/docs/resources/webhooks/subscription.md +96 -0
  34. data/lib/calendlyr/client.rb +18 -2
  35. data/lib/calendlyr/collection.rb +2 -2
  36. data/lib/calendlyr/error.rb +42 -1
  37. data/lib/calendlyr/object.rb +6 -2
  38. data/lib/calendlyr/objects/activity_log.rb +11 -0
  39. data/lib/calendlyr/objects/availabilities/rule.rb +4 -0
  40. data/lib/calendlyr/objects/availabilities/user_busy_time.rb +7 -0
  41. data/lib/calendlyr/objects/availabilities/user_schedule.rb +13 -0
  42. data/lib/calendlyr/objects/event.rb +11 -0
  43. data/lib/calendlyr/objects/event_type.rb +15 -0
  44. data/lib/calendlyr/objects/event_types/available_time.rb +4 -0
  45. data/lib/calendlyr/objects/event_types/membership.rb +11 -0
  46. data/lib/calendlyr/objects/event_types/profile.rb +7 -0
  47. data/lib/calendlyr/objects/events/cancellation.rb +4 -0
  48. data/lib/calendlyr/objects/events/guest.rb +4 -0
  49. data/lib/calendlyr/objects/events/invitee.rb +11 -0
  50. data/lib/calendlyr/objects/events/invitee_no_show.rb +7 -0
  51. data/lib/calendlyr/objects/group.rb +15 -0
  52. data/lib/calendlyr/objects/groups/relationship.rb +15 -0
  53. data/lib/calendlyr/objects/organization.rb +67 -0
  54. data/lib/calendlyr/objects/organizations/invitation.rb +15 -0
  55. data/lib/calendlyr/objects/organizations/membership.rb +15 -0
  56. data/lib/calendlyr/objects/routing_form.rb +11 -0
  57. data/lib/calendlyr/objects/routing_forms/submission.rb +7 -0
  58. data/lib/calendlyr/objects/scheduling_link.rb +9 -0
  59. data/lib/calendlyr/objects/share.rb +9 -0
  60. data/lib/calendlyr/objects/user.rb +31 -0
  61. data/lib/calendlyr/objects/webhooks/invitee_payload.rb +15 -0
  62. data/lib/calendlyr/objects/webhooks/payload.rb +4 -0
  63. data/lib/calendlyr/objects/webhooks/subscription.rb +23 -0
  64. data/lib/calendlyr/resource.rb +2 -2
  65. data/lib/calendlyr/resources/availability.rb +19 -0
  66. data/lib/calendlyr/resources/data_compliance.rb +4 -0
  67. data/lib/calendlyr/resources/event.rb +40 -0
  68. data/lib/calendlyr/resources/event_type.rb +28 -0
  69. data/lib/calendlyr/resources/group.rb +22 -0
  70. data/lib/calendlyr/resources/organization.rb +40 -0
  71. data/lib/calendlyr/resources/outgoing_communication.rb +8 -0
  72. data/lib/calendlyr/resources/routing_form.rb +22 -0
  73. data/lib/calendlyr/resources/{scheduling_links.rb → scheduling_link.rb} +2 -2
  74. data/lib/calendlyr/resources/share.rb +8 -0
  75. data/lib/calendlyr/resources/user.rb +11 -0
  76. data/lib/calendlyr/resources/webhook.rb +25 -0
  77. data/lib/calendlyr/version.rb +1 -1
  78. data/lib/calendlyr.rb +70 -18
  79. data/test/calendlyr/objects/activity_log_test.rb +26 -0
  80. data/test/calendlyr/objects/availabilities/rule_test.rb +24 -0
  81. data/test/calendlyr/objects/availabilities/user_busy_time_test.rb +21 -0
  82. data/test/calendlyr/objects/availabilities/user_schedule_test.rb +26 -0
  83. data/test/calendlyr/objects/event_test.rb +32 -0
  84. data/test/calendlyr/objects/event_type_test.rb +43 -0
  85. data/test/calendlyr/objects/event_types/available_time_test.rb +20 -0
  86. data/test/calendlyr/objects/event_types/membership_test.rb +32 -0
  87. data/test/calendlyr/objects/event_types/profile_test.rb +23 -0
  88. data/test/calendlyr/objects/events/cancellation_test.rb +16 -0
  89. data/test/calendlyr/objects/events/guest_test.rb +16 -0
  90. data/test/calendlyr/objects/events/invitee_no_show_test.rb +23 -0
  91. data/test/calendlyr/objects/events/invitee_test.rb +35 -0
  92. data/test/calendlyr/objects/group_test.rb +40 -0
  93. data/test/calendlyr/objects/groups/relationship_test.rb +43 -0
  94. data/test/calendlyr/objects/organization_test.rb +157 -0
  95. data/test/calendlyr/objects/organizations/invitation_test.rb +34 -0
  96. data/test/calendlyr/objects/organizations/membership_test.rb +38 -0
  97. data/test/calendlyr/objects/routing_form_test.rb +26 -0
  98. data/test/calendlyr/objects/routing_forms/submission_test.rb +22 -0
  99. data/test/calendlyr/objects/scheduling_link_test.rb +17 -0
  100. data/test/calendlyr/objects/share_test.rb +19 -0
  101. data/test/calendlyr/objects/user_test.rb +81 -0
  102. data/test/calendlyr/objects/webhooks/invite_payload_test.rb +42 -0
  103. data/test/calendlyr/objects/webhooks/payload_test.rb +16 -0
  104. data/test/calendlyr/objects/webhooks/subscription_test.rb +42 -0
  105. data/test/calendlyr/resource_test.rb +12 -3
  106. data/test/calendlyr/resources/availabilities/user_busy_times_test.rb +31 -0
  107. data/test/calendlyr/resources/availabilities/user_schedules_test.rb +37 -0
  108. data/test/calendlyr/resources/data_compliance_test.rb +11 -0
  109. data/test/calendlyr/resources/event_types/membership_test.rb +22 -0
  110. data/test/calendlyr/resources/event_types_test.rb +55 -10
  111. data/test/calendlyr/resources/events/invitee_test.rb +31 -0
  112. data/test/calendlyr/resources/events_test.rb +22 -10
  113. data/test/calendlyr/resources/groups_test.rb +26 -0
  114. data/test/calendlyr/resources/organizations_test.rb +36 -100
  115. data/test/calendlyr/resources/outgoing_communications_test.rb +16 -0
  116. data/test/calendlyr/resources/scheduling_links_test.rb +1 -1
  117. data/test/calendlyr/resources/users_test.rb +9 -33
  118. data/test/calendlyr/resources/webhooks_test.rb +22 -13
  119. data/test/fixtures/activity_log/list.json +38 -0
  120. data/test/fixtures/availabilities/user_busy_times_list.json +39 -0
  121. data/test/fixtures/availabilities/user_schedules_list.json +93 -0
  122. data/test/fixtures/availabilities/user_schedules_retrieve.json +22 -0
  123. data/test/fixtures/data_compliance/delete_scheduled_event_data.json +1 -0
  124. data/test/fixtures/event_invitees/list.json +6 -6
  125. data/test/fixtures/event_invitees/retrieve.json +3 -3
  126. data/test/fixtures/event_type_available_times/list.json +22 -0
  127. data/test/fixtures/event_type_hosts/list.json +76 -0
  128. data/test/fixtures/event_types/create_one_off.json +45 -0
  129. data/test/fixtures/event_types/list.json +18 -4
  130. data/test/fixtures/event_types/retrieve.json +13 -2
  131. data/test/fixtures/events/cancel_invitee.json +8 -0
  132. data/test/fixtures/events/create_invitee_no_show.json +7 -0
  133. data/test/fixtures/events/delete_invitee_no_show.json +1 -0
  134. data/test/fixtures/events/retrieve_invitee_no_show.json +7 -0
  135. data/test/fixtures/group_relationships/list.json +83 -0
  136. data/test/fixtures/group_relationships/retrieve.json +29 -0
  137. data/test/fixtures/groups/list.json +19 -0
  138. data/test/fixtures/groups/retrieve.json +9 -0
  139. data/test/fixtures/objects/activity_log.json +24 -0
  140. data/test/fixtures/objects/availabilities/rule.json +10 -0
  141. data/test/fixtures/objects/availabilities/user_busy_time.json +10 -0
  142. data/test/fixtures/objects/availabilities/user_schedule.json +69 -0
  143. data/test/fixtures/objects/availability_rule.json +10 -0
  144. data/test/fixtures/objects/event.json +36 -0
  145. data/test/fixtures/objects/event_type.json +91 -0
  146. data/test/fixtures/objects/event_type_host.json +65 -0
  147. data/test/fixtures/objects/event_types/available_time.json +6 -0
  148. data/test/fixtures/objects/event_types/membership.json +65 -0
  149. data/test/fixtures/objects/event_types/profile.json +5 -0
  150. data/test/fixtures/objects/events/cancellation.json +6 -0
  151. data/test/fixtures/objects/events/guest.json +5 -0
  152. data/test/fixtures/objects/events/invitee.json +46 -0
  153. data/test/fixtures/objects/events/invitee_no_show.json +5 -0
  154. data/test/fixtures/objects/group.json +7 -0
  155. data/test/fixtures/objects/groups/relationship.json +27 -0
  156. data/test/fixtures/objects/organization.json +8 -0
  157. data/test/fixtures/objects/organizations/invitation.json +10 -0
  158. data/test/fixtures/objects/organizations/membership.json +18 -0
  159. data/test/fixtures/objects/routing_form.json +28 -0
  160. data/test/fixtures/objects/routing_forms/submission.json +27 -0
  161. data/test/fixtures/objects/scheduling_links/event_type.json +5 -0
  162. data/test/fixtures/objects/share.json +43 -0
  163. data/test/fixtures/objects/user.json +13 -0
  164. data/test/fixtures/objects/webhooks/invite_payload.json +83 -0
  165. data/test/fixtures/objects/webhooks/payload.json +66 -0
  166. data/test/fixtures/objects/webhooks/subscription.json +15 -0
  167. data/test/fixtures/organization_memberships/list.json +29 -0
  168. data/test/fixtures/organization_memberships/retrieve.json +20 -0
  169. data/test/fixtures/organizations/list_invitations.json +4 -4
  170. data/test/fixtures/organizations/list_memberships.json +12 -9
  171. data/test/fixtures/organizations/retrieve_invitation.json +3 -3
  172. data/test/fixtures/organizations/retrieve_membership.json +3 -3
  173. data/test/fixtures/outgoing_communications/list.json +26 -0
  174. data/test/fixtures/resources/401.json +2 -2
  175. data/test/fixtures/resources/403.json +1 -1
  176. data/test/fixtures/resources/403_payment_required.json +4 -0
  177. data/test/fixtures/resources/424.json +4 -0
  178. data/test/fixtures/routing_forms/list.json +39 -0
  179. data/test/fixtures/routing_forms/list_routing_form_submission.json +38 -0
  180. data/test/fixtures/routing_forms/retrieve.json +30 -0
  181. data/test/fixtures/routing_forms/retrieve_routing_form_submission.json +29 -0
  182. data/test/fixtures/shares/create.json +45 -0
  183. data/test/fixtures/user_availability_schedules/list.json +93 -0
  184. data/test/fixtures/user_availability_schedules/retrieve.json +22 -0
  185. data/test/fixtures/user_busy_times/list.json +39 -0
  186. data/test/fixtures/users/reload.json +5 -4
  187. data/test/fixtures/users/retrieve.json +5 -4
  188. data/test/fixtures/webhooks/create.json +4 -4
  189. data/test/fixtures/webhooks/list.json +4 -4
  190. data/test/fixtures/webhooks/retrieve.json +4 -4
  191. data/test/fixtures/webhooks/sample.json +105 -0
  192. metadata +159 -62
  193. data/lib/calendlyr/objects/event_invitees.rb +0 -4
  194. data/lib/calendlyr/objects/event_types.rb +0 -4
  195. data/lib/calendlyr/objects/events.rb +0 -4
  196. data/lib/calendlyr/objects/invitations.rb +0 -11
  197. data/lib/calendlyr/objects/memberships.rb +0 -7
  198. data/lib/calendlyr/objects/organizations.rb +0 -35
  199. data/lib/calendlyr/objects/scheduling_links.rb +0 -4
  200. data/lib/calendlyr/objects/users.rb +0 -19
  201. data/lib/calendlyr/objects/webhooks.rb +0 -11
  202. data/lib/calendlyr/resources/event_invitees.rb +0 -12
  203. data/lib/calendlyr/resources/event_types.rb +0 -12
  204. data/lib/calendlyr/resources/events.rb +0 -12
  205. data/lib/calendlyr/resources/organizations.rb +0 -33
  206. data/lib/calendlyr/resources/users.rb +0 -11
  207. data/lib/calendlyr/resources/webhooks.rb +0 -21
  208. data/test/calendlyr/resources/event_invitees_test.rb +0 -29
  209. data/test/fixtures/resources/409.json +0 -4
@@ -0,0 +1,7 @@
1
+ {
2
+ "resource": {
3
+ "uri": "https://api.calendly.com/invitee_no_shows/639fa667-4c1b-4b20-93b5-1b1969d67dc6",
4
+ "invitee": "https://api.calendly.com/scheduled_events/GBGBDCAADAEDCRZ2/invitees/7c1dbe46-bd84-42e2-9b97-05e2fb379bfe",
5
+ "created_at": "2019-01-02T03:04:05.678123Z"
6
+ }
7
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "collection": [
3
+ {
4
+ "uri": "https://api.calendly.com/group_relationships/AAAAAAAAAAAAAAAA",
5
+ "role": "member",
6
+ "owner": {
7
+ "type": "OrganizationMembership",
8
+ "uri": "https://api.calendly.com/organization_memberships/AAAAAAAAAAAAAAAA",
9
+ "role": "user",
10
+ "user": {
11
+ "uri": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA",
12
+ "name": "John Doe",
13
+ "slug": "acmesales",
14
+ "email": "test@example.com",
15
+ "scheduling_url": "https://calendly.com/acmesales",
16
+ "timezone": "America/New York",
17
+ "avatar_url": "https://01234567890.cloudfront.net/uploads/user/avatar/0123456/a1b2c3d4.png",
18
+ "created_at": "2019-01-02T03:04:05.678123Z",
19
+ "updated_at": "2019-08-07T06:05:04.321123Z"
20
+ },
21
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
22
+ "updated_at": "2019-08-07T06:05:04.321123Z",
23
+ "created_at": "2019-01-02T03:04:05.678123Z"
24
+ },
25
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
26
+ "group": "https://api.calendly.com/groups/AAAAAAAAAAAAAAAA",
27
+ "created_at": "2019-01-02T03:04:05.678123Z",
28
+ "updated_at": "2019-08-07T06:05:04.321123Z"
29
+ },
30
+ {
31
+ "uri": "https://api.calendly.com/group_relationships/AAAAAAAAAAAAAAAA",
32
+ "role": "admin",
33
+ "owner": {
34
+ "type": "OrganizationMembership",
35
+ "uri": "https://api.calendly.com/organization_memberships/AAAAAAAAAAAAAAAA",
36
+ "role": "user",
37
+ "user": {
38
+ "uri": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA",
39
+ "name": "John Doe",
40
+ "slug": "acmesales",
41
+ "email": "test@example.com",
42
+ "scheduling_url": "https://calendly.com/acmesales",
43
+ "timezone": "America/New York",
44
+ "avatar_url": "https://01234567890.cloudfront.net/uploads/user/avatar/0123456/a1b2c3d4.png",
45
+ "created_at": "2019-01-02T03:04:05.678123Z",
46
+ "updated_at": "2019-08-07T06:05:04.321123Z"
47
+ },
48
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
49
+ "updated_at": "2019-08-07T06:05:04.321123Z",
50
+ "created_at": "2019-01-02T03:04:05.678123Z"
51
+ },
52
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
53
+ "group": "https://api.calendly.com/groups/AAAAAAAAAAAAAAAA",
54
+ "created_at": "2019-01-02T03:04:05.678123Z",
55
+ "updated_at": "2019-08-07T06:05:04.321123Z"
56
+ },
57
+ {
58
+ "uri": "https://api.calendly.com/group_relationships/AAAAAAAAAAAAAAAA",
59
+ "role": "member",
60
+ "owner": {
61
+ "type": "OrganizationInvitation",
62
+ "uri": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA/invitations/BBBBBBBBBBBBBBBB",
63
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
64
+ "email": "test@example.com",
65
+ "status": "pending",
66
+ "created_at": "2019-08-07T06:05:04.321123Z",
67
+ "updated_at": "2019-01-02T03:04:05.678123Z",
68
+ "last_sent_at": "2019-01-02T03:04:05.678123Z"
69
+ },
70
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
71
+ "group": "https://api.calendly.com/groups/AAAAAAAAAAAAAAAA",
72
+ "created_at": "2019-01-02T03:04:05.678123Z",
73
+ "updated_at": "2019-08-07T06:05:04.321123Z"
74
+ }
75
+ ],
76
+ "pagination": {
77
+ "count": 20,
78
+ "next_page": "https://api.calendly.com/group_relationships?count=1&page_token=sNjq4TvMDfUHEl7zHRR0k0E1PCEJWvdi",
79
+ "previous_page": "https://api.calendly.com/group_relationships?count=1&page_token=VJs2rfDYeY8ahZpq0QI1O114LJkNjd7H",
80
+ "next_page_token": "sNjq4TvMDfUHEl7zHRR0k0E1PCEJWvdi",
81
+ "previous_page_token": "VJs2rfDYeY8ahZpq0QI1O114LJkNjd7H"
82
+ }
83
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "resource": {
3
+ "uri": "https://api.calendly.com/group_relationships/AAAAAAAAAAAAAAAA",
4
+ "role": "member",
5
+ "owner": {
6
+ "type": "OrganizationMembership",
7
+ "uri": "https://api.calendly.com/organization_memberships/AAAAAAAAAAAAAAAA",
8
+ "role": "user",
9
+ "user": {
10
+ "uri": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA",
11
+ "name": "John Doe",
12
+ "slug": "acmesales",
13
+ "email": "test@example.com",
14
+ "scheduling_url": "https://calendly.com/acmesales",
15
+ "timezone": "America/New York",
16
+ "avatar_url": "https://01234567890.cloudfront.net/uploads/user/avatar/0123456/a1b2c3d4.png",
17
+ "created_at": "2019-01-02T03:04:05.678123Z",
18
+ "updated_at": "2019-08-07T06:05:04.321123Z"
19
+ },
20
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
21
+ "updated_at": "2019-08-07T06:05:04.321123Z",
22
+ "created_at": "2019-01-02T03:04:05.678123Z"
23
+ },
24
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
25
+ "group": "https://api.calendly.com/groups/AAAAAAAAAAAAAAAA",
26
+ "created_at": "2019-01-02T03:04:05.678123Z",
27
+ "updated_at": "2019-08-07T06:05:04.321123Z"
28
+ }
29
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "collection": [
3
+ {
4
+ "uri": "https://api.calendly.com/groups/AAAAAAAAAAAAAAAA",
5
+ "name": "Sales Team",
6
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
7
+ "created_at": "2019-01-02T03:04:05.678123Z",
8
+ "updated_at": "2019-08-07T06:05:04.321123Z",
9
+ "member_count": 0
10
+ }
11
+ ],
12
+ "pagination": {
13
+ "count": 20,
14
+ "next_page": "https://api.calendly.com/event_types?count=1&page_token=sNjq4TvMDfUHEl7zHRR0k0E1PCEJWvdi",
15
+ "previous_page": "https://api.calendly.com/event_types?count=1&page_token=VJs2rfDYeY8ahZpq0QI1O114LJkNjd7H",
16
+ "next_page_token": "sNjq4TvMDfUHEl7zHRR0k0E1PCEJWvdi",
17
+ "previous_page_token": "VJs2rfDYeY8ahZpq0QI1O114LJkNjd7H"
18
+ }
19
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "resource": {
3
+ "uri": "https://api.calendly.com/groups/AAAAAAAAAAAAAAAA",
4
+ "name": "Sales Team",
5
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
6
+ "created_at": "2019-01-02T03:04:05.678123Z",
7
+ "updated_at": "2019-08-07T06:05:04.321123Z"
8
+ }
9
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "occurred_at": "2020-01-02T03:04:05.678Z",
3
+ "uri": "https://api.calendly.com/activity_log_entries/ALFKJELNCLKSJDLKFJGELKJ",
4
+ "namespace": "User",
5
+ "action": "Add",
6
+ "actor": {
7
+ "uri": "https://api.calendly.com/users/SDLKJENFJKD123",
8
+ "type": "User",
9
+ "organization": {
10
+ "uri": "https://api.calendly.com/organizations/LKJENFLKE293847",
11
+ "role": "Owner"
12
+ },
13
+ "group": {
14
+ "uri": "https://api.calendly.com/groups/123987DJLKJEF",
15
+ "name": "Development",
16
+ "role": "Admin"
17
+ },
18
+ "display_name": "Test User",
19
+ "alternative_identifier": "testuser@example.com"
20
+ },
21
+ "fully_qualified_name": "User.Add",
22
+ "details": {},
23
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAA"
24
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "type": "wday",
3
+ "intervals": [
4
+ {
5
+ "from": "08:30",
6
+ "to": "09:30"
7
+ }
8
+ ],
9
+ "wday": "sunday"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "type": "calendly",
3
+ "start_time": "2020-01-02T20:00:00.000000Z",
4
+ "end_time": "2020-01-02T20:30:00.000000Z",
5
+ "buffered_start_time": "2020-01-02T19:30:00.000000Z",
6
+ "buffered_end_time": "2020-01-02T21:00:00.000000Z",
7
+ "event": {
8
+ "uri": "https://api.calendly.com/scheduled_events/abc123"
9
+ }
10
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "uri": "https://api.calendly.com/user_availability_schedule/abc123",
3
+ "default": true,
4
+ "name": "Working Hours",
5
+ "user": "https://api.calendly.com/users/abc123",
6
+ "rules": [
7
+ {
8
+ "type": "wday",
9
+ "intervals": [
10
+ {
11
+ "from": "08:30",
12
+ "to": "17:00"
13
+ }
14
+ ],
15
+ "wday": "monday"
16
+ },
17
+ {
18
+ "type": "wday",
19
+ "intervals": [
20
+ {
21
+ "from": "08:30",
22
+ "to": "17:00"
23
+ }
24
+ ],
25
+ "wday": "tuesday"
26
+ },
27
+ {
28
+ "type": "wday",
29
+ "intervals": [],
30
+ "wday": "wednesday"
31
+ },
32
+ {
33
+ "type": "wday",
34
+ "intervals": [
35
+ {
36
+ "from": "08:30",
37
+ "to": "17:00"
38
+ }
39
+ ],
40
+ "wday": "thursday"
41
+ },
42
+ {
43
+ "type": "wday",
44
+ "intervals": [
45
+ {
46
+ "from": "08:30",
47
+ "to": "17:00"
48
+ }
49
+ ],
50
+ "wday": "friday"
51
+ },
52
+ {
53
+ "type": "wday",
54
+ "intervals": [],
55
+ "wday": "saturday"
56
+ },
57
+ {
58
+ "type": "date",
59
+ "intervals": [
60
+ {
61
+ "from": "08:30",
62
+ "to": "09:30"
63
+ }
64
+ ],
65
+ "date": "2028-12-31"
66
+ }
67
+ ],
68
+ "timezone": "America\\/New_York"
69
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "type": "wday",
3
+ "intervals": [
4
+ {
5
+ "from": "08:30",
6
+ "to": "09:30"
7
+ }
8
+ ],
9
+ "wday": "sunday"
10
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "uri": "https://api.calendly.com/scheduled_events/GBGBDCAADAEDCRZ2",
3
+ "name": "15 Minute Meeting",
4
+ "meeting_notes_plain": "Internal meeting notes",
5
+ "meeting_notes_html": "<p>Internal meeting notes</p>",
6
+ "status": "active",
7
+ "start_time": "2019-08-24T14:15:22.123456Z",
8
+ "end_time": "2019-08-24T14:15:22.123456Z",
9
+ "event_type": "https://api.calendly.com/event_types/GBGBDCAADAEDCRZ2",
10
+ "location": {
11
+ "type": "physical",
12
+ "location": "string",
13
+ "additional_info": "string"
14
+ },
15
+ "invitees_counter": {
16
+ "total": 0,
17
+ "active": 0,
18
+ "limit": 0
19
+ },
20
+ "created_at": "2019-01-02T03:04:05.678123Z",
21
+ "updated_at": "2019-01-02T03:04:05.678123Z",
22
+ "event_memberships": [
23
+ {
24
+ "user": "https://api.calendly.com/users/GBGBDCAADAEDCRZ2",
25
+ "user_email": "user@example.com",
26
+ "user_name": "John Smith"
27
+ }
28
+ ],
29
+ "event_guests": [
30
+ {
31
+ "email": "user@example.com",
32
+ "created_at": "2019-08-24T14:15:22.123456Z",
33
+ "updated_at": "2019-08-24T14:15:22.123456Z"
34
+ }
35
+ ]
36
+ }
@@ -0,0 +1,91 @@
1
+ {
2
+ "uri": "https://api.calendly.com/event_types/AAAAAAAAAAAAAAAA",
3
+ "name": "15 Minute Meeting",
4
+ "active": true,
5
+ "booking_method": "instant",
6
+ "slug": "acmesales",
7
+ "scheduling_url": "https://calendly.com/acmesales",
8
+ "duration": 30,
9
+ "kind": "solo",
10
+ "pooling_type": "round_robin",
11
+ "type": "StandardEventType",
12
+ "color": "#fff200",
13
+ "created_at": "2019-01-02T03:04:05.678123Z",
14
+ "updated_at": "2019-08-07T06:05:04.321123Z",
15
+ "internal_note": "Event type note",
16
+ "description_plain": "Event type description",
17
+ "description_html": "<p>Event type description</p>",
18
+ "profile": {
19
+ "type": "User",
20
+ "name": "Tamara Jones",
21
+ "owner": "https://api.calendly.com/users/ABC123"
22
+ },
23
+ "secret": true,
24
+ "deleted_at": null,
25
+ "admin_managed": false,
26
+ "locations": [
27
+ {
28
+ "kind": "inbound_call",
29
+ "phone_number": 380934567654,
30
+ "additional_info": "Additional information about location"
31
+ }
32
+ ],
33
+ "position": 0,
34
+ "custom_questions": [
35
+ {
36
+ "name": "Company Name",
37
+ "type": "string",
38
+ "position": 0,
39
+ "enabled": true,
40
+ "required": true,
41
+ "answer_choices": null,
42
+ "include_other": false
43
+ },
44
+ {
45
+ "name": "What would you like to discuss?",
46
+ "type": "text",
47
+ "position": 0,
48
+ "enabled": true,
49
+ "required": true,
50
+ "answer_choices": null,
51
+ "include_other": false
52
+ },
53
+ {
54
+ "name": "Number of employees",
55
+ "answer_choices": [
56
+ "1",
57
+ "2-10",
58
+ "11-20",
59
+ "20+"
60
+ ],
61
+ "enabled": true,
62
+ "include_other": true,
63
+ "position": 2,
64
+ "required": false,
65
+ "type": "single_select"
66
+ },
67
+ {
68
+ "name": "Multi-Select Question",
69
+ "answer_choices": [
70
+ "Answer 1",
71
+ "Answer 2",
72
+ "Answer 3",
73
+ "Answer 4"
74
+ ],
75
+ "enabled": true,
76
+ "include_other": true,
77
+ "position": 2,
78
+ "required": false,
79
+ "type": "multi_select"
80
+ },
81
+ {
82
+ "name": "Phone Number",
83
+ "type": "phone_number",
84
+ "position": 0,
85
+ "enabled": true,
86
+ "required": true,
87
+ "answer_choices": null,
88
+ "include_other": false
89
+ }
90
+ ]
91
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "uri": "https://api.calendly.com/event_type_memberships/AAAAAAAAAAAAAAAA",
3
+ "event_type": {
4
+ "uri": "https://api.calendly.com/event_types/AAAAAAAAAAAAAAAA",
5
+ "name": "15 Minute Meeting",
6
+ "active": true,
7
+ "slug": "acmesales",
8
+ "scheduling_url": "https://calendly.com/acmesales",
9
+ "duration": 30,
10
+ "kind": "solo",
11
+ "pooling_type": "round_robin",
12
+ "type": "StandardEventType",
13
+ "color": "#fff200",
14
+ "created_at": "2019-01-02T03:04:05.678123Z",
15
+ "updated_at": "2019-08-07T06:05:04.321123Z",
16
+ "internal_note": "Internal note",
17
+ "description_plain": "15 Minute Meeting",
18
+ "description_html": "<p>15 Minute Meeting</p>",
19
+ "profile": {
20
+ "type": "User",
21
+ "name": "Tamara Jones",
22
+ "owner": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA"
23
+ },
24
+ "secret": true,
25
+ "booking_method": "poll",
26
+ "custom_questions": [
27
+ {
28
+ "name": "string",
29
+ "type": "string",
30
+ "position": 0,
31
+ "enabled": true,
32
+ "required": true,
33
+ "answer_choices": [
34
+ "string"
35
+ ],
36
+ "include_other": true
37
+ }
38
+ ],
39
+ "deleted_at": "2019-01-02T03:04:05.678123Z",
40
+ "admin_managed": true,
41
+ "locations": [
42
+ {
43
+ "kind": "inbound_call",
44
+ "phone_number": 380934567654,
45
+ "additional_info": "Additional information about location"
46
+ }
47
+ ],
48
+ "position": 0
49
+ },
50
+ "member": {
51
+ "uri": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA",
52
+ "name": "John Doe",
53
+ "slug": "acmesales",
54
+ "email": "test@example.com",
55
+ "scheduling_url": "https://calendly.com/acmesales",
56
+ "timezone": "America/New York",
57
+ "avatar_url": "https://01234567890.cloudfront.net/uploads/user/avatar/0123456/a1b2c3d4.png",
58
+ "created_at": "2019-01-02T03:04:05.678123Z",
59
+ "updated_at": "2019-08-07T06:05:04.321123Z",
60
+ "current_organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
61
+ "resource_type": "User"
62
+ },
63
+ "updated_at": "2019-01-02T03:04:05.678123Z",
64
+ "created_at": "2019-01-02T03:04:05.678123Z"
65
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "status": "available",
3
+ "invitees_remaining": 2,
4
+ "start_time": "2020-01-02T20:00:00.000000Z",
5
+ "scheduling_url": "https://calendly.com/acmesales/discovery-call/2020-01-02T20:00:00Z?month=2020-01&date=2020-01-02"
6
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "uri": "https://api.calendly.com/event_type_memberships/AAAAAAAAAAAAAAAA",
3
+ "event_type": {
4
+ "uri": "https://api.calendly.com/event_types/AAAAAAAAAAAAAAAA",
5
+ "name": "15 Minute Meeting",
6
+ "active": true,
7
+ "slug": "acmesales",
8
+ "scheduling_url": "https://calendly.com/acmesales",
9
+ "duration": 30,
10
+ "kind": "solo",
11
+ "pooling_type": "round_robin",
12
+ "type": "StandardEventType",
13
+ "color": "#fff200",
14
+ "created_at": "2019-01-02T03:04:05.678123Z",
15
+ "updated_at": "2019-08-07T06:05:04.321123Z",
16
+ "internal_note": "Internal note",
17
+ "description_plain": "15 Minute Meeting",
18
+ "description_html": "<p>15 Minute Meeting</p>",
19
+ "profile": {
20
+ "type": "User",
21
+ "name": "Tamara Jones",
22
+ "owner": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA"
23
+ },
24
+ "secret": true,
25
+ "booking_method": "poll",
26
+ "custom_questions": [
27
+ {
28
+ "name": "string",
29
+ "type": "string",
30
+ "position": 0,
31
+ "enabled": true,
32
+ "required": true,
33
+ "answer_choices": [
34
+ "string"
35
+ ],
36
+ "include_other": true
37
+ }
38
+ ],
39
+ "deleted_at": "2019-01-02T03:04:05.678123Z",
40
+ "admin_managed": true,
41
+ "locations": [
42
+ {
43
+ "kind": "inbound_call",
44
+ "phone_number": 380934567654,
45
+ "additional_info": "Additional information about location"
46
+ }
47
+ ],
48
+ "position": 0
49
+ },
50
+ "member": {
51
+ "uri": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA",
52
+ "name": "John Doe",
53
+ "slug": "acmesales",
54
+ "email": "test@example.com",
55
+ "scheduling_url": "https://calendly.com/acmesales",
56
+ "timezone": "America/New York",
57
+ "avatar_url": "https://01234567890.cloudfront.net/uploads/user/avatar/0123456/a1b2c3d4.png",
58
+ "created_at": "2019-01-02T03:04:05.678123Z",
59
+ "updated_at": "2019-08-07T06:05:04.321123Z",
60
+ "current_organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
61
+ "resource_type": "User"
62
+ },
63
+ "updated_at": "2019-01-02T03:04:05.678123Z",
64
+ "created_at": "2019-01-02T03:04:05.678123Z"
65
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "type": "User",
3
+ "name": "Tamara Jones",
4
+ "owner": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA"
5
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "canceled_by": "string",
3
+ "reason": "string",
4
+ "canceler_type": "host",
5
+ "created_at": "2019-01-02T03:04:05.678123Z"
6
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "email": "user@example.com",
3
+ "created_at": "2019-08-24T14:15:22.123456Z",
4
+ "updated_at": "2019-08-24T14:15:22.123456Z"
5
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "cancel_url": "https://calendly.com/cancellations/AAAAAAAAAAAAAAAA",
3
+ "created_at": "2020-11-23T17:51:18.327602Z",
4
+ "email": "test@example.com",
5
+ "event": "https://api.calendly.com/scheduled_events/AAAAAAAAAAAAAAAA",
6
+ "first_name": "John",
7
+ "last_name": "Doe",
8
+ "name": "John Doe",
9
+ "new_invitee": null,
10
+ "old_invitee": null,
11
+ "questions_and_answers": [],
12
+ "reschedule_url": "https://calendly.com/reschedulings/AAAAAAAAAAAAAAAA",
13
+ "rescheduled": false,
14
+ "status": "active",
15
+ "text_reminder_number": null,
16
+ "timezone": "America/New_York",
17
+ "tracking": {
18
+ "utm_campaign": null,
19
+ "utm_source": null,
20
+ "utm_medium": null,
21
+ "utm_content": null,
22
+ "utm_term": null,
23
+ "salesforce_uuid": null
24
+ },
25
+ "updated_at": "2020-11-23T17:51:18.341657Z",
26
+ "uri": "https://api.calendly.com/scheduled_events/AAAAAAAAAAAAAAAA/invitees/AAAAAAAAAAAAAAAA",
27
+ "routing_form_submission": "https://api.calendly.com/routing_form_submissions/AAAAAAAAAAAAAAAA",
28
+ "payment": {
29
+ "external_id": "ch_AAAAAAAAAAAAAAAAAAAAAAAA",
30
+ "provider": "stripe",
31
+ "amount": 1234.56,
32
+ "currency": "USD",
33
+ "terms": "sample terms of payment (up to 1,024 characters)",
34
+ "successful": true
35
+ },
36
+ "no_show": {
37
+ "uri": "https://api.calendly.com/invitee_no_shows/6ee96ed4-83a3-4966-a278-cd19b3c02e09",
38
+ "created_at": "2020-11-23T17:51:18.341657Z"
39
+ },
40
+ "reconfirmation": {
41
+ "created_at": "2020-11-23T17:51:18.341657Z",
42
+ "confirmed_at": "2020-11-23T20:01:18.341657Z"
43
+ },
44
+ "scheduling_method": null,
45
+ "invitee_scheduled_by": null
46
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "uri": "https://api.calendly.com/no_shows/40a3cb54-e45c-4f34-b100-bd346220a5bb",
3
+ "invitee": "https://api.calendly.com/scheduled_events/GBGBDCAADAEDCRZ2/invitees/7c1dbe46-bd84-42e2-9b97-05e2fb379bfe",
4
+ "created_at": "2019-01-02T03:04:05.678123Z"
5
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "uri": "https://api.calendly.com/groups/AAAAAAAAAAAAAAAA",
3
+ "name": "Sales Team",
4
+ "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA",
5
+ "created_at": "2019-01-02T03:04:05.678123Z",
6
+ "updated_at": "2019-08-07T06:05:04.321123Z"
7
+ }