Class: DropboxApi::Endpoints::Files::CreateFolderBatchCheck

Inherits:
Rpc
  • Object
show all
Defined in:
lib/dropbox_api/endpoints/files/create_folder_batch_check.rb

Constant Summary collapse

Method =
:post
Path =
"/2/files/create_folder_batch/check".freeze
ResultType =
DropboxApi::Results::CreateFolderBatchResult
ErrorType =
DropboxApi::Errors::PollError

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

#create_folder_batch_check(async_job_id) ⇒ Array

Returns the status of an asynchronous job for create_folder_batch. If success, it returns list of result for each entry.

Parameters:

  • async_job_id (String)

    Id of the asynchronous job. This is the value of a response returned from the method that launched the job.

Returns:

  • (Array)

    A list of one result for each entry.


15
16
17
18
19
# File 'lib/dropbox_api/endpoints/files/create_folder_batch_check.rb', line 15

add_endpoint :create_folder_batch_check do |async_job_id|
  perform_request({
    :async_job_id => async_job_id
  })
end