module Drip::Client::Accounts

Public Instance Methods

account(id) click to toggle source

Public: Fetch an account.

id - Required. The String id of the account.

Returns a Drip::Response. See www.getdrip.com/docs/rest-api#accounts

# File lib/drip/client/accounts.rb, line 20
def account(id)
  make_json_api_request :get, "v2/accounts/#{id}"
end
accounts() click to toggle source

Public: Fetch all accounts to which the authenticated user has access.

Returns a Drip::Response. See www.getdrip.com/docs/rest-api#accounts

# File lib/drip/client/accounts.rb, line 10
def accounts
  make_json_api_request :get, "v2/accounts"
end