-
Notifications
You must be signed in to change notification settings - Fork 0
API v1 Endpoints
Sven Schiffer edited this page Apr 28, 2015
·
1 revision
GET /1/users/me HTTP/1.1
{
"status": "ok",
"payload": {
"_id": 553bae0f1511a04d1632e30a,
"email": "[email protected]",
"uploads": [ ],
"quota": {
"used": 98612,
"total": 1048576000
},
"oauth": {
"google": 109381679589309700000
},
"registered": "2015-04-25T15:09:03.437Z"
}
}
PUT /1/users/ HTTP/1.1
GET /1/uploads/{hash} HTTP/1.1
{
"status": "ok",
"payload": {
"_id": "553e5a587bc818120d9aed8b",
"shortid": "L3w7",
"_user": "553bae0f1511a04e3632e30a",
"title": "image.png",
"mimetype": "image/png",
"size": 59656,
"filename": "f1cfb7ef-5aa5-49dc-a200-efa9568060f7.png",
"destination": "f1/cf/",
"decryptionkey": "3be9a8ca-bf90-4926-9c4a-11ce81bf736e",
"created": "2015-04-27T15:48:40.024Z",
"views": 19
}
}
{hash} = A 4 digit short URL reference
GET /1/uploads/ HTTP/1.1
POST /1/uploads/ HTTP/1.1