Class: FundAmerica::WebhookLog

Inherits:
Object
  • Object
show all
Defined in:
lib/fund_america/webhook_log.rb

Class Method Summary collapse

Class Method Details

.details(webhook_log_id) ⇒ Object

End point: apps.fundamerica.com/api/webhook_logs/:id (GET) Usage: FundAmerica::WebhookLog.details(webhook_log_id) Output: Returns the details of an webhook_log with matching id



19
20
21
# File 'lib/fund_america/webhook_log.rb', line 19

def details(webhook_log_id)
  API::request(:get, "webhook_logs/#{webhook_log_id}")
end

.list(page: 1, per: 25) ⇒ Object

End point: apps.fundamerica.com/api/webhook_logs/?page=[num]&per=[num] (GET) Usage: FundAmerica::WebhookLog.list Output: Returns list of webhook_logs Params: (method defaults are the same as the current API defaults)

* page - page number of results; starts at 1, not 0
* per - number of results per page


11
12
13
14
# File 'lib/fund_america/webhook_log.rb', line 11

def list(page: 1, per: 25)
  request_uri = "webhook_logs/?page=#{page}&per=#{per}"
  API::request(:get, request_uri)
end