Account

These methods may be used to get information about user account.

Methods

Info

GET /account/info

Information about user account. subtitle_languages is a list of ISO639-2 codes.

Example response:

{
    "info": {
        "username": "cenk",
        "mail": "cenk@gmail.com",
        "plan_expiration_date": "2014-03-04T06:33:30",
        "subtitle_languages": ["tr", "eng"],
        "default_subtitle_language": "tr",
        "disk": {
            "avail": 20849243836,
            "used": 32837847364,
            "size": 53687091200
        }
    },
    "status": "OK"
}

Settings

GET /account/settings

User preferences.

Example response:

{
    "status": "OK",
    "settings": {
        "default_download_folder": 0,
        "is_invisible": false,
        "subtitle_languages": ["tr", "eng"],
        "default_subtitle_language": "tr",
    }
}
POST /account/settings

Updates user preferences. Only sent parameters are updated.

Parameters

default_download_folder:
 Optional. File ID for default location. 0 is the root folder.
is_invisible:Optional. Boolean value (true or false). Enables invisible mode.
subtitle_languages:
 Optional. String of comma separated ISO639-2 codes (e.g., ‘eng,tr’). Maximum length of choices is 2.

Example response:

{
    "response": "settings_updated"
}