Class: DropboxApi::Endpoints::Users::GetAccount

Inherits:
Rpc
  • Object
show all
Defined in:
lib/dropbox_api/endpoints/users/get_account.rb

Constant Summary collapse

Method =
:post
Path =
"/2/users/get_account".freeze
ResultType =
DropboxApi::Metadata::BasicAccount
ErrorType =
DropboxApi::Errors::GetAccountError

Instance Method Summary collapse

Methods inherited from Rpc

#build_request, #initialize, #request_body

Methods inherited from Base

add_endpoint

Constructor Details

This class inherits a constructor from DropboxApi::Endpoints::Rpc

Instance Method Details

#get_account(account_id) ⇒ BasicAccount

Get information about a user's account.

Parameters:

  • account_id (String)

    A user's account identifier.

Returns:

  • (BasicAccount)

    Basic information about any account.


12
13
14
# File 'lib/dropbox_api/endpoints/users/get_account.rb', line 12

add_endpoint :get_account do ||
  perform_request :account_id => 
end