Class: DropboxApi::Endpoints::Users::GetCurrentAccount

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

Constant Summary collapse

Method =
:post
Path =
'/2/users/get_current_account'
ResultType =
DropboxApi::Metadata::BasicAccount
ErrorType =
nil

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_current_accountBasicAccount

Get information about the current user's account.

Returns:

  • (BasicAccount)

    Detailed information about the current user's account.



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

add_endpoint :get_current_account do
  perform_request nil
end