calendlyr 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,28 @@
1
+ # Invitee Calendlyr::Events::Invitee
2
+
3
+ An individual who has been invited to meet with a Calendly member.
4
+
5
+ Visit official [API Doc](https://developer.calendly.com/api-docs/decca36cf717f-invitee)
6
+
7
+ ## Client requests
8
+
9
+ ### Retrieve
10
+
11
+ Returns information about a specified Invitee (person invited to an event).
12
+
13
+ Visit official [API Doc](https://developer.calendly.com/api-docs/8305c0ccfac70-get-event-invitee)
14
+
15
+ ```ruby
16
+ client.events.retrieve_invitee(event_uuid: event_uuid, invitee_uuid: invitee_uuid)
17
+ #=> #<Calendlyr::Events::Invitee>
18
+ ```
19
+ ### List
20
+
21
+ Returns a list of Invitees for an event.
22
+
23
+ Visit official [API Doc](https://developer.calendly.com/api-docs/eb8ee72701f99-list-event-invitees)
24
+
25
+ ```ruby
26
+ client.events.list_invitees(uuid: uuid)
27
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Events::Invitee>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
28
+ ```
@@ -0,0 +1,49 @@
1
+ # Invitee No Show Calendlyr::Events::InviteeNoShow
2
+
3
+ Information about an invitees no show.
4
+
5
+ Visit official [API Doc](https://developer.calendly.com/api-docs/753a78b938d75-invitee-no-show)
6
+
7
+ ## Client requests
8
+
9
+ ### Retrieve
10
+
11
+ Returns information about a specified Invitee No Show.
12
+
13
+ Visit official [API Doc](https://developer.calendly.com/api-docs/49cf0c87ee6f4-get-invitee-no-show)
14
+
15
+ ```ruby
16
+ client.events.retrieve_invitee_no_show(uuid: uuid)
17
+ #=> #<Calendlyr::Events::InviteeNoShow>
18
+ ```
19
+
20
+ ### Create
21
+
22
+ Marks an Invitee as a No Show.
23
+
24
+ Visit official [API Doc](https://developer.calendly.com/api-docs/cebd8c3170790-create-invitee-no-show)
25
+
26
+ ```ruby
27
+ client.events.create_invitee_no_show(invitee: invitee_uri)
28
+ #=> #<Calendlyr::Events::InviteeNoShow>
29
+ ```
30
+
31
+ ### Delete
32
+
33
+ Undoes marking an Invitee as a No Show.
34
+
35
+ Visit official [API Doc](https://developer.calendly.com/api-docs/eb599c64c95ea-delete-invitee-no-show)
36
+
37
+ ```ruby
38
+ client.events.delete_invitee_no_show(uuid: uuid)
39
+ #=>
40
+ ```
41
+
42
+ ## Object methods
43
+
44
+ ### Delete
45
+
46
+ ```ruby
47
+ invitee_no_show.delete
48
+ #=>
49
+ ```
@@ -0,0 +1,56 @@
1
+ # Group Calendlyr::Group
2
+
3
+ The Group resource that was requested. Represents groupings of Users within an Organization.
4
+
5
+ Visit official [API Doc](https://developer.calendly.com/api-docs/15c7951a86b40-group)
6
+
7
+ ## Client requests
8
+
9
+ ### Retrieve
10
+
11
+ Returns information about a specified Group.
12
+
13
+ Visit official [API Doc](https://developer.calendly.com/api-docs/beaf147a3bc34-get-group)
14
+
15
+ ```ruby
16
+ client.groups.retrieve(uuid: uuid)
17
+ #=> #<Calendlyr::Group>
18
+ ```
19
+
20
+ ### List
21
+
22
+ Returns a list of groups.
23
+
24
+ Visit official [API Doc](https://developer.calendly.com/api-docs/6rb6dtdln74sy-list-groups)
25
+
26
+ ```ruby
27
+ client.groups.list(organization: organization_uri)
28
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Group>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
29
+ ```
30
+
31
+ ## Object methods
32
+
33
+ ### Associated Organization
34
+
35
+ ```ruby
36
+ group.associated_organization
37
+ #=> #<Calendlyr::Organization>
38
+ ```
39
+
40
+ ### Events
41
+
42
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
43
+
44
+ ```ruby
45
+ group.events
46
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Event>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
47
+ ```
48
+
49
+ ### Group Relationships
50
+
51
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
52
+
53
+ ```ruby
54
+ group.group_relationships
55
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Groups::Relationship>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
56
+ ```
@@ -0,0 +1,54 @@
1
+ # Group Relationship Calendlyr::Groups::Relationship
2
+
3
+ A group relationship record for an individual. A given individual may have more than one admin relationship to multiple groups, but only one member relationship to a single group.
4
+
5
+ Visit official [API Doc](https://developer.calendly.com/api-docs/a82d8ee79eb82-group-relationship)
6
+
7
+ ## Client requests
8
+
9
+ ### Retrieve
10
+
11
+ Returns a group relationship by uuid.
12
+
13
+ Visit official [API Doc](https://developer.calendly.com/api-docs/91925872af92a-get-group-relationship)
14
+
15
+ ```ruby
16
+ client.groups.retrieve_relationship(uuid: uuid)
17
+ #=> #<Calendlyr::Groups::Relationship>
18
+ ```
19
+
20
+ ### List
21
+
22
+ Returns a list of group relationships - a given owner can have one membership record, but multiple admin records.
23
+
24
+ Visit official [API Doc](https://developer.calendly.com/api-docs/4674a12f55f82-list-group-relationships)
25
+
26
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
27
+
28
+ ```ruby
29
+ client.groups.list_relationships
30
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Groups::Relationship>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
31
+ ```
32
+
33
+ ## Object methods
34
+
35
+ ### Associated Organization
36
+
37
+ ```ruby
38
+ group_relationship.associated_organization
39
+ #=> #<Calendlyr::Organization>
40
+ ```
41
+
42
+ ### Associated Group
43
+
44
+ ```ruby
45
+ group_relationship.associated_group
46
+ #=> #<Calendlyr::Group>
47
+ ```
48
+
49
+ ### Associated Owner
50
+
51
+ ```ruby
52
+ group_relationship.associated_owner
53
+ #=> #<Calendlyr::Organizations::Membership>
54
+ ```
@@ -0,0 +1,65 @@
1
+ # Organization Invitation Calendlyr::Organizations::Invitation
2
+
3
+ Organization Invitation object.
4
+
5
+ Visit official [API Doc](https://developer.calendly.com/api-docs/736b3f42c9586-organization-invitation)
6
+
7
+ ## Client requests
8
+
9
+ ### Retrieve
10
+
11
+ Returns an Organization Invitation that was sent to the organization's members.
12
+
13
+ Visit official [API Doc](https://developer.calendly.com/api-docs/f3f0b6c2a95c7-get-organization-invitation)
14
+
15
+ ```ruby
16
+ client.organizations.retrieve_invitation(org_uuid: organization_uuid, uuid: invitation_uuid)
17
+ #=> #<Calendlyr::Organizations::Invitation>
18
+ ```
19
+
20
+ ### Invite
21
+
22
+ Invites a user to an organization.
23
+
24
+ Visit official [API Doc](https://developer.calendly.com/api-docs/094d15d2cd4ab-invite-user-to-organization)
25
+
26
+ ```ruby
27
+ client.organizations.invite(organization_uuid: organization_uuid, email: "email@example.com")
28
+ #=> #<Calendlyr::Organizations::Invitation>
29
+ ```
30
+
31
+ ### List
32
+
33
+ Returns a list of Organization Invitations that were sent to the organization's members.
34
+
35
+ Visit official [API Doc](https://developer.calendly.com/api-docs/3ad68ee2cc606-list-organization-invitations)
36
+
37
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
38
+
39
+ ```ruby
40
+ client.organizations.list_invitations(uuid: organization_uuid)
41
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Organizations::Invitation>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
42
+ ```
43
+
44
+ ## Object methods
45
+
46
+ ### Associated Organization
47
+
48
+ ```ruby
49
+ organization_invitation.associated_organization
50
+ #=> #<Calendlyr::Organization>
51
+ ```
52
+
53
+ ### Associated User
54
+
55
+ ```ruby
56
+ organization_invitation.associated_user
57
+ #=> #<Calendlyr::User>
58
+ ```
59
+
60
+ ### Revoke
61
+
62
+ ```ruby
63
+ organization_invitation.revoke
64
+ #=>
65
+ ```
@@ -0,0 +1,58 @@
1
+ # Organization Membership Calendlyr::Organizations::Membership
2
+
3
+ Organization Membership object.
4
+
5
+ Visit official [API Doc](https://developer.calendly.com/api-docs/ae30b41b52a54-organization-membership)
6
+
7
+ ## Client requests
8
+
9
+ ### Retrieve
10
+
11
+ Returns information about a user's Organization Membership.
12
+
13
+ Visit official [API Doc](https://developer.calendly.com/api-docs/8c3baa79a5883-get-organization-membership)
14
+
15
+ ```ruby
16
+ client.organizations.retrieve_membership(uuid: uuid)
17
+ #=> #<Calendlyr::Organizations::Membership>
18
+ ```
19
+
20
+ ### List
21
+
22
+ Use this to list the Organization Memberships for all users belonging to an organization.
23
+
24
+ Visit official [API Doc](https://developer.calendly.com/api-docs/eaed2e61a6bc3-list-organization-memberships)
25
+
26
+ For the example bellow we will use only required parameters, but you can use any other parameter as well.
27
+
28
+ ```ruby
29
+ client.organizations.list_memberships(user: user)
30
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Organizations::Membership>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
31
+
32
+ client.organizations.list_memberships(organization: organization)
33
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Organizations::Membership>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
34
+ ```
35
+
36
+ ## Object methods
37
+
38
+ ### Associated Organization
39
+
40
+ ```ruby
41
+ organization_membership.associated_organization
42
+ #=> #<Calendlyr::Organization>
43
+ ```
44
+
45
+ ### Associated User
46
+
47
+ ```ruby
48
+ organization_membership.associated_user
49
+ #=> #<Calendlyr::User>
50
+ ```
51
+
52
+ ### Group Relationships
53
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
54
+
55
+ ```ruby
56
+ organization_membership.group_relationships
57
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Groups::Relationship>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
58
+ ```
@@ -0,0 +1,149 @@
1
+ # Organization Calendlyr::Organization
2
+
3
+ Organization object.
4
+
5
+ Visit official [API Doc](https://developer.calendly.com/api-docs/848e5e20591ee-organization)
6
+
7
+ ## Me
8
+
9
+ We can access your organization information by calling `organization` method on the client object.
10
+
11
+ ```ruby
12
+ organization = client.organization
13
+ #=> #<Calendlyr::Organization>
14
+ ```
15
+
16
+ ## Object methods
17
+
18
+ ### Activity Logs
19
+
20
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
21
+
22
+ ```ruby
23
+ organization.activity_logs
24
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::ActivityLog>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
25
+ ```
26
+
27
+ ### Events
28
+
29
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
30
+
31
+ ```ruby
32
+ organization.events
33
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Event>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
34
+ ```
35
+
36
+ ### Event Types
37
+
38
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
39
+
40
+ ```ruby
41
+ organization.event_types
42
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Event>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
43
+ ```
44
+
45
+ ### Routing Forms
46
+
47
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
48
+
49
+ ```ruby
50
+ organization.routing_forms
51
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::RoutingForm>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
52
+ ```
53
+
54
+ ### Groups
55
+
56
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
57
+
58
+ ```ruby
59
+ organization.groups
60
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Group>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
61
+ ```
62
+
63
+ ### Group Relationships
64
+
65
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
66
+
67
+ ```ruby
68
+ organization.group_relationships
69
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Groups::Relationship>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
70
+ ```
71
+
72
+ ### Memberships
73
+
74
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
75
+
76
+ ```ruby
77
+ organization.memberships
78
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Organizations::Membership>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
79
+ ```
80
+
81
+ ### Membership
82
+
83
+ ```ruby
84
+ organization.membership(uuid: uuid)
85
+ #=> #<Organizations::Membership>
86
+ ```
87
+
88
+ ### Webhooks
89
+
90
+ For the example bellow we will use only required parameters, but you can use any other parameter as well.
91
+
92
+ ```ruby
93
+ organization.webhooks(scope: scope)
94
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Webhooks::Subscription>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
95
+ ```
96
+
97
+ ### Create a Webhook
98
+
99
+ For the example bellow we will use only required parameters, but you can use any other parameter as well.
100
+
101
+ ```ruby
102
+ organization.create_webhook(url:, url, events: events, scope: scope)
103
+ #=> #<Calendlyr::Webhooks::Subscription>
104
+ ```
105
+
106
+ ### Sample Webhook Data
107
+
108
+ For the example bellow we will use only required parameters, but you can use any other parameter as well.
109
+
110
+ ```ruby
111
+ organization.sample_webhook_data(event: event, scope: scope)
112
+ #=> #<Calendlyr::Object>
113
+ ```
114
+
115
+ ### Invite user
116
+
117
+ For the example bellow we will use only required parameters, but you can use any other parameter as well.
118
+
119
+ ```ruby
120
+ organization.invite_user(email: 'email@example.com')
121
+ #=> #<Calendlyr::Organizations::Invitation>
122
+ ```
123
+
124
+ ### Invitations
125
+
126
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
127
+
128
+ ```ruby
129
+ organization.invitations
130
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::Organizations::Invitation>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
131
+ ```
132
+
133
+ ### Invitation
134
+
135
+ For the example bellow we will use only required parameters, but you can use any other parameter as well.
136
+
137
+ ```ruby
138
+ organization.invitation(invitation_uuid: invitation_uuid)
139
+ #=> #<Calendlyr::Organizations::Invitation>
140
+ ```
141
+
142
+ ### Revoke an invitation
143
+
144
+ For the example bellow we will use only required parameters, but you can use any other parameter as well.
145
+
146
+ ```ruby
147
+ organization.revoke_invitation(invitation_uuid: invitation_uuid)
148
+ #=>
149
+ ```
@@ -0,0 +1,21 @@
1
+ # Pagination
2
+
3
+ `collection` endpoints return pages of results. The result object will have a `data` key to access the results, as well as pagination like `next_page` for retrieving the next pages. You may also specify the
4
+
5
+ ```ruby
6
+ results = client.me.events(count: 5)
7
+ #=> Calendlyr::Collection
8
+
9
+ results.count
10
+ #=> 5
11
+
12
+ results.data
13
+ #=> [#<Calendlyr::Event>, #<Calendlyr::Event>]
14
+
15
+ results.next_page_token
16
+ #=> "KfKBetd7bS0wsFINjYky9mp8ZJXv76aL"
17
+
18
+ # Retrieve the next page
19
+ client.me.events(count: 5, next_page_token: results.next_page_token)
20
+ #=> Calendlyr::Collection
21
+ ```
@@ -0,0 +1,48 @@
1
+ # Routing Form Calendlyr::RoutingForm
2
+
3
+ Information about a routing form.
4
+
5
+ Visit official [API Doc](https://developer.calendly.com/api-docs/20e016678903c-routing-form)
6
+
7
+ ## Client requests
8
+
9
+ ### Retrieve
10
+
11
+ Get a specified Routing Form.
12
+
13
+ Visit official [API Doc](https://developer.calendly.com/api-docs/910a7e2f573e8-get-routing-form)
14
+
15
+ ```ruby
16
+ client.routing_forms.retrieve(uuid: form_uuid)
17
+ #=> #<Calendlyr::RoutingForm>
18
+ ```
19
+
20
+ ### List
21
+
22
+ Get a list of Routing Forms for a specified Organization.
23
+
24
+ Visit official [API Doc](https://developer.calendly.com/api-docs/9fe7334bec6ad-list-routing-forms)
25
+
26
+ For the example bellow we will use only required parameters, but you can use any other parameter as well.
27
+
28
+ ```ruby
29
+ client.routing_forms.list(organization: organization_uri)
30
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::RoutingForm>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
31
+ ```
32
+
33
+ ## Object methods
34
+
35
+ ### Associated Organization
36
+
37
+ ```ruby
38
+ routing_form.associated_organization
39
+ #=> #<Calendlyr::Organization>
40
+ ```
41
+
42
+ ### Submissions
43
+ For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
44
+
45
+ ```ruby
46
+ routing_form.submissions
47
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::RoutingForms::Submission>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
48
+ ```
@@ -0,0 +1,40 @@
1
+ # Routing Form Submission Calendlyr::RoutingForms::Submission
2
+
3
+ Information about a Routing Form Submission.
4
+
5
+ Visit official [API Doc](https://developer.calendly.com/api-docs/09b54c4d45b62-routing-form-submission)
6
+
7
+ ## Client requests
8
+
9
+ ### Retrieve
10
+
11
+ Get a specified Routing Form Submission.
12
+
13
+ Visit official [API Doc](https://developer.calendly.com/api-docs/f4ccebf48e5b5-get-routing-form-submission)
14
+
15
+ ```ruby
16
+ client.routing_forms.retrieve_submission(uuid: submission_uuid)
17
+ #=> #<Calendlyr::RoutingForms::Submission>
18
+ ```
19
+
20
+ ### List
21
+
22
+ Get a list of Routing Form Submissions for a specified Routing Form.
23
+
24
+ Visit official [API Doc](https://developer.calendly.com/api-docs/17db5cb915a57-list-routing-form-submissions)
25
+
26
+ For the example bellow we will use only required parameters, but you can use any other parameter as well.
27
+
28
+ ```ruby
29
+ client.routing_forms.list_submissions(form: routing_form_uri)
30
+ #=> #<Calendlyr::Collection @data=[#<Calendlyr::RoutingForms::Submission>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
31
+ ```
32
+
33
+ ## Object methods
34
+
35
+ ### Associated Routing Form
36
+
37
+ ```ruby
38
+ routing_form_submission.associated_routing_form
39
+ #=> #<Calendlyr::RoutingForm>
40
+ ```
@@ -0,0 +1,26 @@
1
+ # Scheduling Link Calendlyr::SchedulingLink
2
+
3
+ Scheduling Link Object.
4
+
5
+
6
+ ## Client requests
7
+
8
+ ### Create
9
+
10
+ Creates a single-use scheduling link.
11
+
12
+ Visit official [API Doc](https://developer.calendly.com/api-docs/4b8195084e287-create-single-use-scheduling-link)
13
+
14
+ ```ruby
15
+ client.scheduling_links.create(owner: event_type_uri, max_event_count: 1)
16
+ #=> #<Calendlyr::SchedulingLink>
17
+ ```
18
+
19
+ ## Object methods
20
+
21
+ ### Event Type
22
+
23
+ ```ruby
24
+ scheduling_link.event_type
25
+ #=> #<Calendlyr::EventType>
26
+ ```
@@ -0,0 +1,28 @@
1
+ # Share Calendlyr::Schare
2
+
3
+ Schare Object.
4
+
5
+ Visit official [API Doc](https://developer.calendly.com/api-docs/0069948603238-share)
6
+
7
+
8
+ ## Client requests
9
+
10
+ ### Create
11
+
12
+ Endpoint for our Customize Once and Share feature. This allows you to customize events for a specific invitee without needing to make an entirely new event type. This feature is only available for one-on-one event types. Note: Any parameter which is not provided in the request body will be copied from the target event type.
13
+
14
+ Visit official [API Doc](https://developer.calendly.com/api-docs/fdcac06abfc8c-create-share)
15
+
16
+ ```ruby
17
+ client.shares.create(create: event_type_uri, name: "15 minute meeting", duration: ...)
18
+ #=> #<Calendlyr::Share>
19
+ ```
20
+
21
+ ## Object methods
22
+
23
+ ### Associated Scheduling Links
24
+
25
+ ```ruby
26
+ share.associated_scheduling_links
27
+ #=> [#<Calendlyr::SchedulingLink>]
28
+ ```