def get_account_id
      unless acct_id
        response = get_login_information.body
        hashed_response = JSON.parse(response)
        login_accounts = hashed_response['loginAccounts']
        @acct_id ||= login_accounts.first['accountId']
      end

      acct_id
    end
def get_account_id
      unless acct_id
        response = get_login_information.body
        hashed_response = JSON.parse(response)
        login_accounts = hashed_response['loginAccounts']
        @acct_id ||= login_accounts.first['accountId']
      end

      acct_id
    end
Internal: uses the get_login_information method to determine the client's
 accountId and then caches that value into an instance variable so we
 don't end up hitting the API for login_information more than once per
 request.

 This is used by the rake task in lib/tasks/docusign_task.rake to add
 the config/initialzers/docusign_rest.rb file with the proper config block
 which includes the account_id in it. That way we don't require hitting
 the /login_information URI in normal requests

 Returns the accountId string