Method: Auth0::Api::V2::Actions#trigger_bindings

Defined in:
lib/auth0/api/v2/actions.rb

#trigger_bindings(trigger_id, page: nil, per_page: nil) ⇒ json Also known as: get_trigger_bindings

Retrieve the actions that are bound to a trigger.

Parameters:

  • trigger_id (string)

    An actions extensibility point.

  • per_page (integer) (defaults to: nil)

    The amount of entries per page. Default: 50. Max value: 100.

  • page (integer) (defaults to: nil)

    The page number. Zero based

Returns:

  • (json)

    Returns the action with the given trigger_id if it exists.

Raises:

See Also:



127
128
129
130
131
132
133
134
135
136
# File 'lib/auth0/api/v2/actions.rb', line 127

def trigger_bindings(trigger_id, page: nil, per_page: nil)
  raise Auth0::MissingTriggerId, 'Must supply a valid trigger_id' if trigger_id.to_s.empty?
  path = "#{actions_path}/triggers/#{trigger_id}/bindings"
  request_params = {
    per_page: per_page,
    page: page
  }

  get(path, request_params)
end