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'
ResultType =
DropboxApi::Metadata::BasicAccount
ErrorType =
DropboxApi::Errors::GetAccountError

Instance Method Summary collapse

Methods inherited from Rpc

#build_connection, #build_request, #request_body

Methods inherited from Base

add_endpoint, #initialize

Constructor Details

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

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.



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

add_endpoint :get_account do ||
  perform_request account_id: 
end