Information about the user.
Visit official API Doc
Returns information about a specified User.
Visit official API Doc
client.users.retrieve(uuid: user_uuid)
#=> #<Calendlyr::User>
Returns basic information about your user account.
Visit official API Doc
client.users.me
#=> #<Calendlyr::User>
Probably you need to make many calls through client.me
, so we decided to not make calls for every client.me
reference by memoizing it the first time.
client.me # makes a call and memoize the response
client.me # no call, value memoized
However, if you need to reload the content of me
you can force_relaod
to force a new call.
client.me(force_reload: true) # makes a new call and update memoized value
user.associated_organization
#=> #<Calendlyr::Organization>
For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
user.availability_schedules
#=> #<Calendlyr::Collection @data=[#<Calendlyr::Availabilities::UserSchedule>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
Based on your user organization
For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
user.memberships
#=> #<Calendlyr::Collection @data=[#<Calendlyr::Organizations::Membership>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
Based on your user organization
user.membership(uuid: membership_uuid)
#=> #<Calendlyr::Organizations::Membership>
For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
user.event_types
#=> #<Calendlyr::Collection @data=[#<Calendlyr::EventType>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
For the example bellow we will use not parameters, but you can use the allowed parameters in Calendly docs.
user.events
#=> #<Calendlyr::Collection @data=[#<Calendlyr::Event>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>
For the example bellow we will use only required parameters, but you can use any other parameter as well.
user.busy_times(start_time: start_time, end_time: end_time)
#=> #<Calendlyr::Collection @data=[#<Calendlyr::Availabilities::UserBusyTime>, ...], @count=nil, @next_page=nil, @next_page_token=nil, @client=#<Calendlyr::Client>>