Albums
Base URI
access token provided in response to /authenticate method
{id}
{albumId}
/upload{photoId}
{provider}
/oauthToken/{oauthToken}
{albumId}
{albumId}
/photos{albumId}
/hide/{photoId}
{albumId}
/sharedUrl{sharedToken}
{token}
{albumId}
/name{albumId}
/mute{albumId}
/photos/{start}
/number/{number}
{albumId}
/changesPOST https://fifth-glazing-578.appspot.com/api/invite HTTP/1.1
Content-Type: application/json
{
"users": [
{
"externalId": "1231231231123123",
"authProvider": "Facebook"
}
],
"albumId": 123
}
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"inviteId": 123,
"albumName": "Test Album",
"albumId": 123,
"userId": 1123,
"invitationDate": 1,
"invitator": {
"id": 1123,
"firstName": "",
"lastName": ""
},
"status": "PENDING,ACCEPTED,DECLINED"
}
]
{inviteId}
/type/{inviteType}
/user/{userId}
/album/{albumId}
{photoId}
{photoId}
{photoId}
/comment/{commentId}
{photoId}
Path variables
Request body
Examples
Responses
Body
{photoId}
Path variables
Responses
Body
Request body
Responses
Body
combination of code and token not found
Request body
Responses
Body
{albumId}
/batch{albumId}
/batch/{batchId}
Request body
list of photo ids
Responses
Body
When you upload batch part you must fill headers with complete Batch object and index of batch part witnin this object
Request headers
Request body
Multiart filled with
- “batch” - json with complete batch object
- low res images, Content-Type must be specified: image/jpeg, image/png
Responses
Body
Request headers
Responses
Body
Creates new album for the user
Request body
Responses
Body
Responses
Body
{albumId}
/uploadPath variables
Request body
Responses
Body
ATTENTION! Base URL is different for this method!!! Use uploadUrl returned by init method
HEADERS
Content-Type: multipart/form-data
service-meta-album: albumId
service-meta-user: userId
servce-meta-asset: file url on deivce
service-meta-width: image width
service-meta-height: image height
service-meta-latitude: not required
service-meta-longitude: not required
service-meta-client-upload-date: not required
service-meta-date: photo creation time in millis since 1970
Responses
{provider}
/oauthToken/{oauthToken}
Path variables
Responses
Body
Responses
Body
{albumId}
/sharedUrlPath variables
Responses
Body
{sharedToken}
Anonymous access, no need to provide accessToken to call this method
Path variables
Responses
Body
Responses
Body
{token}
token is passed to the web page
http://demessify.net/viewer.html#/album/invite/bb7cef66-ecb9-4c7e-b535-30ee91e7e0d6
Path variables
Responses
Body
ATTENTION! Base URL is different for this method!!! Use uploadUrl returned by init method
HEADERS
Content-Type: multipart/form-data
service-meta-album: albumId
service-meta-user: userId
servce-meta-asset: file url on deivce
service-meta-width: image width
service-meta-height: image height
service-meta-latitude: not required
service-meta-longitude: not required
service-meta-client-upload-date: not required
service-meta-date: photo creation time in millis since 1970
Responses
{albumId}
/photos/{start}
/number/{number}
Path variables
offset index
number of photos to return
Responses
Body
GET https://fifth-glazing-578.appspot.com/api/album/1/photos/2/number/-17 HTTP/1.1
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": 16,
"assetURI": "putin.jpg",
"uploadDate": 1402266704000,
"creationDate": 1402266700000,
"contentType": "image/jpeg",
"size": 148161,
"url": "http://lh5.ggpht.com/2FUgiX4yZoG_QTO1QDbKwSe-GDt2kyPIned0a62iHW7HgT2Gre7n7fM9XQIczmXVV-ef3H0dHcKB0KMhT9BXM7YuyYaJr34",
"thumbnails": [
{
"type": "WIDTH_208, WIDTH_640, WIDTH_960",
"url": "http://lh5.ggpht.com/2FUgiX4yZoG_QTO1QDbKwSe-GDt2kyPIned0a62iHW7HgT2Gre7n7fM9XQIczmXVV-ef3H0dHcKB0KMhT9BXM7YuyYaJr34=s208"
}
],
"width": 1,
"height": 1,
"owner": {
"id": 123,
"firstName": "Valdimir",
"lastName": "Putin",
"externalId": "",
"authProvider": "",
"creationDate": 1405358472000
},
"lowResUrl": ""
}
]
Returns a list of user albums including album covers
Responses
Body
User
muted is not returned with some methods
User
302969733218156
302969733218156
Photo
PHOTO, COMMENT, JOIN, LEAVE,
+12026293344
original photo width
original photo height
{ "http://high_res_image1_upload_url", "http://high_res_image1_upload_url" }