-
Notifications
You must be signed in to change notification settings - Fork 0
api example json
Jay Williams edited this page Mar 7, 2012
·
8 revisions
This is requesting the photo 123456
informations: title
, description
and publish-date
{
"method" : "photo.get",
"request" :
{
"id" : 123456,
"fields" : [ "title", "description", "publish-date" ]
}
}
The requested data are provided like this:
{
"status" : "valid",
"response" :
{
"title" : "My best photo",
"description" : "This photo was token ..."
"publish-date" : "2011-08-24T12:33:42+01:00"
}
}
If an error occurs like an unknown photo id:
{
"status" : "error",
"code" : "no_result",
"message" : "There is no photo corresponding to the 'id' : 123456"
}