Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.7 KB

invitation.md

File metadata and controls

65 lines (42 loc) · 1.7 KB

Organization Invitation Calendlyr::Organizations::Invitation

Organization Invitation object.

Visit official API Doc

Client requests

Retrieve

Returns an Organization Invitation that was sent to the organization's members.

Visit official API Doc

client.organizations.retrieve_invitation(org_uuid: organization_uuid, uuid: invitation_uuid)
#=> #<Calendlyr::Organizations::Invitation>

Invite

Invites a user to an organization.

Visit official API Doc

client.organizations.invite(organization_uuid: organization_uuid, email: "[email protected]")
#=> #<Calendlyr::Organizations::Invitation>

List

Returns a list of Organization Invitations that were sent to the organization's members.

Visit official API Doc

For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.

client.organizations.list_invitations(uuid: organization_uuid)
#=> #<Calendlyr::Collection @data=[#<Calendlyr::Organizations::Invitation>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>

Object methods

Associated Organization

organization_invitation.associated_organization
#=> #<Calendlyr::Organization>

Associated User

organization_invitation.associated_user
#=> #<Calendlyr::User>

Revoke

organization_invitation.revoke
#=>