Class: Composio::EventLogsApi

Inherits:
Object
  • Object
show all
Defined in:
lib/composio/api/event_logs_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ EventLogsApi

Returns a new instance of EventLogsApi.



15
16
17
# File 'lib/composio/api/event_logs_api.rb', line 15

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



13
14
15
# File 'lib/composio/api/event_logs_api.rb', line 13

def api_client
  @api_client
end

Instance Method Details

#update_webhook(event_webhook_url:, extra: {}) ⇒ Object

Update webhook

Parameters:

  • event_webhook_url (String)

    Event Webhook URL

  • body (WebhookReqDTO)
  • extra (Hash) (defaults to: {})

    additional parameters to pass along through :header_params, :query_params, or parameter name



24
25
26
27
28
29
30
# File 'lib/composio/api/event_logs_api.rb', line 24

def update_webhook(event_webhook_url:, extra: {})
  _body = {}
  _body[:eventWebhookURL] = event_webhook_url if event_webhook_url != SENTINEL
  extra[:webhook_req_dto] = _body if !_body.empty?
  api_response = update_webhook_with_http_info_impl(extra)
  api_response.data
end

#update_webhook_with_http_info(event_webhook_url:, extra: {}) ⇒ Object

Update webhook

Parameters:

  • event_webhook_url (String)

    Event Webhook URL

  • body (WebhookReqDTO)
  • extra (Hash) (defaults to: {})

    additional parameters to pass along through :header_params, :query_params, or parameter name



37
38
39
40
41
42
# File 'lib/composio/api/event_logs_api.rb', line 37

def update_webhook_with_http_info(event_webhook_url:, extra: {})
  _body = {}
  _body[:eventWebhookURL] = event_webhook_url if event_webhook_url != SENTINEL
  extra[:webhook_req_dto] = _body if !_body.empty?
  update_webhook_with_http_info_impl(extra)
end