Skip to content
Alban LEROUX edited this page Sep 12, 2011 · 8 revisions

Example in JSON

Request

This is requesting the photo 123456 informations: title, description and publish-date

{
	"method" : "photo.get",
	"datas"  : {
		"id" : 123456,
		"fields" : ["title", "description", "publish-date"]
	}
}

Response

The requested datas are provided like this:

{
	"status" : "valid",
	"datas"  : {
		"title" : "My best photo",
		"description" : "This photo was token ..."
		"publish-date" : "2011-08-24T12:33:42+01:00"
	}
}

Response Error

If an error occurs like an unknow photo id:

{
	"status" : "error",
	"code"   : "no_result",
	"message": "There is no photo corresponding to the 'id' : 123456"
}

Clone this wiki locally