Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.46 KB

relationship.md

File metadata and controls

54 lines (35 loc) · 1.46 KB

Group Relationship Calendlyr::Groups::Relationship

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.

Visit official API Doc

Client requests

Retrieve

Returns a group relationship by uuid.

Visit official API Doc

client.groups.retrieve_relationship(uuid: uuid)
#=> #<Calendlyr::Groups::Relationship>

List

Returns a list of group relationships - a given owner can have one membership record, but multiple admin records.

Visit official API Doc

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

client.groups.list_relationships
#=> #<Calendlyr::Collection @data=[#<Calendlyr::Groups::Relationship>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>

Object methods

Associated Organization

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

Associated Group

group_relationship.associated_group
#=> #<Calendlyr::Group>

Associated Owner

group_relationship.associated_owner
#=> #<Calendlyr::Organizations::Membership>