Sha256: cfb15ffb3631328bf3b6a6b939e5f9bb2b7fcb3804245e04b014cdb684f7f4aa
Contents?: true
Size: 1000 Bytes
Versions: 1
Compression:
Stored size: 1000 Bytes
Contents
module Calendly class Client BASE_URL = "https://api.calendly.com" attr_reader :api_key def initialize(api_key:) @api_key = api_key raise Error, "Add an api_key to use Calendly. Calendly::Client.new(api_key: 'your_api_key')" unless api_key end def me users.me end def organization me.organization end def users UserResource.new(self) end def organizations OrganizationResource.new(self) end def event_types EventTypeResource.new(self) end def events EventResource.new(self) end def event_invitees EventInviteeResource.new(self) end def scheduling_links SchedulingLinkResource.new(self) end def webhooks WebhookResource.new(self) end def data_compliance DataComplianceResource.new(self) end # Avoid returning #<Calendly::Client @api_key="api_key" ...> def inspect "#<Calendly::Client>" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calendlyr-0.3.3 | lib/calendly/client.rb |