Disk space inquiry

Query about how much disk space is allocated to an account and the used amount.

HTTP REQUEST

GET | POST

URL

https://cloud.dynamsoft.com/rest/ocr/v1/quota

Request Parameters

Parameters Type If Mandatory Description
method string Yes Fixed value: disk
x-api-key string Yes DDC API Key. When making any API request, pass your key as the value of an x-api-key parameter in the Header.

Response Parameters

Parameters Type UrlEncode Description
quota int32 No The total space allocated to this account. Calculated by bytes.
used int32 No The used space in this account. Calculated by bytes.
error_code int32 No Error code
error_msg string No Error message
request_id string No Request ID

Sample Code
Request Body:

x-api-key: z81QwIA3kg0tUXkueP+QN4qXFCP0MIQIqDn94uxoVPdcnnGArr366w==
GET https://cloud.dynamsoft.com/rest/ocr/v1/quota?method=disk

Response:

{
	'quota':1000,
	'used':2,
	'error_code': 0,
   	'error_msg': 'Success.',
	'request_id':3043312634
}

Is this page helpful?

Leave a Reply

Your email address will not be published.