Tuyu Developers

Developers

Customize the URLs on this site with your Tuyu URL:

https:// .

Current Storage Used GET

Description

Retrieves the current amount of storage currently being used on the site in bytes.

URL

All responses are in JSON format by default, to specify an XML response add “.xml” to the end of the method name (in this case “current_storage_used”).

https://<your subdomain>.<your domain>/api/current_storage_used

Restrictions

The calling user must have:

  • A valid API Key and Secret.

Parameters

Bold indicates required.

Parameter Description
api_key (string) Your API Key.
timestamp (Unix timestamp) The current time in Unix timestamp format.
signature (string) Please see “User Authentication” for more information.

Sample Response

Successful response In JSON:

{"currentStorage": "1256799"}

Successful response in XML:

<currentStorage>1256799</currentStorage>

Error response In JSON:

{"error": {
    "title":"Invalid Username or Password",
    "message":"This user cannot be found on this site."}
}

Error response In XML:

<error>
    <title>Invalid Username or Password</title>
    <message>This user cannot be found on this site.</message>
</error>