Skip to content

Commit 752e2e8

Browse files
author
richard
committed
api info file started
1 parent 40d8620 commit 752e2e8

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

API_INFO.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Mega API information
2+
=====================
3+
4+
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.
5+
6+
7+
### Node attributes (json properties)
8+
9+
'a' Type
10+
'h' Id
11+
'p' Parent Id
12+
'a' encrypted Attributes (within this: 'n' Name)
13+
'k' Node Key
14+
'u' User Id
15+
's' Size
16+
'ts' Time Stamp
17+
18+
#### Node types
19+
20+
0 File
21+
1 Folder
22+
2 Root Folder
23+
3 Inbox
24+
4 Trash
25+
-1 Dummy
26+
27+
28+
### Error responses
29+
30+
#### General errors:
31+
EINTERNAL (-1):
32+
EARGS (-2):
33+
EAGAIN (-3)
34+
ERATELIMIT (-4):
35+
36+
#### Upload errors:
37+
EFAILED (-5):
38+
ETOOMANY (-6):
39+
ERANGE (-7):
40+
EEXPIRED (-8):
41+
42+
#### Filesystem/Account level errors:
43+
ENOENT (-9):
44+
ECIRCULAR (-10):
45+
EACCESS (-11):
46+
EEXIST (-12):
47+
EINCOMPLETE (-13):
48+
EKEY (-14):
49+
ESID (-15):
50+
EBLOCKED (-16):
51+
EOVERQUOTA (-17):
52+
ETEMPUNAVAIL (-18):
53+

0 commit comments

Comments
 (0)