Method: Calendly::Organization#webhooks

Defined in:
lib/calendly/models/organization.rb

#webhooks(opts = {}) ⇒ Array<Calendly::WebhookSubscription>

Get List of organization scope Webhooks associated with self.

Accepts comma-separated list of field:direction values.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional request parameters.

Options Hash (opts):

  • :count (Integer)

    Number of rows to return.

  • :page_token (String)

    Pass this to get the next portion of collection.

  • :sort (String)

    Order results by the specified field and directin. Accepts comma-separated list of field:direction values.

Returns:

Raises:

Since:

  • 0.1.3



92
93
94
95
96
97
# File 'lib/calendly/models/organization.rb', line 92

def webhooks(opts = {})
  return @cached_webhooks if @cached_webhooks

  request_proc = proc { |options| client.webhooks uri, options }
  @cached_webhooks = auto_pagination request_proc, opts
end