Module: Drip::Client::Accounts
- Included in:
- Drip::Client
- Defined in:
- lib/drip/client/accounts.rb
Instance Method Summary collapse
-
#account(id) ⇒ Object
Public: Fetch an account.
-
#accounts ⇒ Object
Public: Fetch all accounts to which the authenticated user has access.
Instance Method Details
#account(id) ⇒ Object
Public: Fetch an account.
id - Required. The String id of the account.
Returns a Drip::Response. See www.getdrip.com/docs/rest-api#accounts
20 21 22 |
# File 'lib/drip/client/accounts.rb', line 20 def account(id) make_json_api_request :get, "v2/accounts/#{id}" end |
#accounts ⇒ Object
Public: Fetch all accounts to which the authenticated user has access.
Returns a Drip::Response. See www.getdrip.com/docs/rest-api#accounts
10 11 12 |
# File 'lib/drip/client/accounts.rb', line 10 def accounts make_json_api_request :get, "v2/accounts" end |