Method: NgrokAPI::Services::EventSourcesClient#get

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

#get(subscription_id: "", type: "") ⇒ NgrokAPI::Models::EventSource

Get the details for a given type that triggers for the given event subscription

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

Parameters:

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

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

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

    Type of event for which an event subscription will trigger

Returns:



101
102
103
104
105
106
107
108
109
110
# File 'lib/ngrokapi/services/event_sources_client.rb', line 101

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