Sha256: 3a50171eb64c26ef377d31d2ee4ee1b5c21cde25ca6ef58da339096cb9da691e

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

module Calendlyr
  class Organization < Object
    def invite_user(email:)
      client.organizations.invite organization_uuid: uuid, email: email
    end

    def list_invitations(**params)
      client.organizations.list_invitations organization_uuid: uuid, **params
    end

    def list_webhooks(**params)
      client.webhooks.list(organization_uri: uri, **params)
    end

    def create_webhook(**params)
      client.webhooks.create(organization_uri: uri, **params)
    end

    def revoke_invitation(invitation_uuid:)
      client.organizations.revoke_invitation(organization_uuid: uuid, invitation_uuid: invitation_uuid)
    end

    def invitation(invitation_uuid:)
      client.organizations.retrieve_invitation(organization_uuid: uuid, invitation_uuid: invitation_uuid)
    end

    def events(user_uri: nil, **params)
      client.events.list user_uri: user_uri, organization_uri: uri, **params
    end

    def memberships(user_uri: nil, **params)
      client.organizations.list_memberships user_uri: user_uri, organization_uri: uri, **params
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
calendlyr-0.6.0 lib/calendlyr/objects/organizations.rb
calendlyr-0.5.0 lib/calendlyr/objects/organizations.rb