Skip to content
Sven Schiffer edited this page Apr 28, 2015 · 1 revision

Receiving user information

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"
	}
}

Updating user information

PUT /1/users/ HTTP/1.1

Receive upload information

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

Receive all user uploads

GET /1/uploads/ HTTP/1.1

Create a new upload

POST /1/uploads/ HTTP/1.1