Module: Drip::Client::Accounts

Included in:
Drip::Client
Defined in:
lib/drip/client/accounts.rb

Instance Method Summary collapse

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 (id)
  make_json_api_request :get, "v2/accounts/#{id}"
end

#accountsObject

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