Method: KlaviyoAPI::AccountsApi#get_accounts

Defined in:
lib/klaviyo-api-sdk/api/accounts_api.rb

#get_accounts(opts = {}) ⇒ Hash<String, Object>

Get Accounts Retrieve the account(s) associated with a given private API key. This will return 1 account object within the array. You can use this to retrieve account-specific data (contact information, timezone, currency, Public API key, etc.) or test if a Private API Key belongs to the correct account prior to performing subsequent actions with the API.
*Rate limits*:
Burst: ‘1/s`
Steady: `15/m` Scopes: `accounts:read`

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Hash<String, Object>)


98
99
100
101
# File 'lib/klaviyo-api-sdk/api/accounts_api.rb', line 98

def get_accounts(opts = {})
  data, _status_code, _headers = get_accounts_with_http_info(opts)
  data
end