Method: NgrokAPI::Services::EventSourcesClient#list

Defined in:
lib/ngrokapi/services/event_sources_client.rb

#list(subscription_id: "") ⇒ NgrokAPI::Models::EventSourceList

List the types for which this event subscription will trigger

https://ngrok.com/docs/api#api-event-sources-list

Parameters:

  • subscription_id (string) (defaults to: "")

    The unique identifier for the Event Subscription that this Event Source is attached to.

Returns:



139
140
141
142
143
144
145
146
147
# File 'lib/ngrokapi/services/event_sources_client.rb', line 139

def list(subscription_id: "")
  path = '/event_subscriptions/%{subscription_id}/sources'
  replacements = {
    subscription_id: subscription_id,
  }
  data = {}
  result = @client.get(path % replacements, data: data)
  NgrokAPI::Models::EventSourceList.new(client: self, attrs: result)
end