Class: DropboxApi::Endpoints::Users::GetAccountBatch

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

Constant Summary collapse

Method =
:post
Path =
'/2/users/get_account_batch'
ResultType =
DropboxApi::Results::BasicAccountBatch
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_batch(account_ids) ⇒ Array<BasicAccount>

Get information about multiple user accounts. At most 300 accounts may be queried per request.

Parameters:

  • account_ids (Array<String>)

    List of user account identifiers. Should not contain any duplicate account IDs.

Returns:

  • (Array<BasicAccount>)

    Basic information about any account.



15
16
17
# File 'lib/dropbox_api/endpoints/users/get_account_batch.rb', line 15

add_endpoint :get_account_batch do ||
  perform_request account_ids: 
end