megapy/API_INFO.md

54 lines
943 B
Markdown
Raw Normal View History

2013-05-23 22:48:48 +00:00
Mega API information
=====================
This file contains definitions for some of the properties within the API. The aim of the file is that more people will contribute through understanding.
### Node attributes (json properties)
2013-05-23 22:51:57 +00:00
* 'a' Type
* 'h' Id
* 'p' Parent Id
* 'a' encrypted Attributes (within this: 'n' Name)
* 'k' Node Key
* 'u' User Id
* 's' Size
* 'ts' Time Stamp
2013-05-23 22:48:48 +00:00
#### Node types
2013-05-23 22:51:57 +00:00
* 0 File
* 1 Folder
* 2 Root Folder
* 3 Inbox
* 4 Trash
* -1 Dummy
2013-05-23 22:48:48 +00:00
### Error responses
#### General errors:
2013-05-23 22:51:57 +00:00
* EINTERNAL (-1):
* EARGS (-2):
* EAGAIN (-3)
* ERATELIMIT (-4):
2013-05-23 22:48:48 +00:00
#### Upload errors:
2013-05-23 22:51:57 +00:00
* EFAILED (-5):
* ETOOMANY (-6):
* ERANGE (-7):
* EEXPIRED (-8):
2013-05-23 22:48:48 +00:00
#### Filesystem/Account level errors:
2013-05-23 22:51:57 +00:00
* ENOENT (-9):
* ECIRCULAR (-10):
* EACCESS (-11):
* EEXIST (-12):
* EINCOMPLETE (-13):
* EKEY (-14):
* ESID (-15):
* EBLOCKED (-16):
* EOVERQUOTA (-17):
* ETEMPUNAVAIL (-18):
2013-05-23 22:48:48 +00:00