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".freeze
ResultType =
DropboxApi::Metadata::BasicAccount
ErrorType =
nil

Instance Method Summary collapse

Methods inherited from Rpc

#build_request, #initialize

Methods inherited from Base

add_endpoint

Constructor Details

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

Instance Method Details

#get_current_accountBasicAccount

Get information about the current user's account.

Returns:

  • (BasicAccount)

    Detailed information about the current user's account.



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

add_endpoint :get_current_account do
  perform_request nil
end