New API Method - photo_info

. 0 Comments.

There's a new API method available as of Osmek 3.0.9.6 - photo_info. This will return a JSON object filled with informatino about an image uploaded to Osmek.

Just post a photo_id to api.osmek.com/photo_info and you'll get something like this back:

 

{
  "id":"98725",
  "base_url":"http:\/\/photos.osmek.com\/98725",
  "type":"png",
  "file_name":"Osmek-icon.png",
  "date_uploaded":"2013-03-01 10:46:44",
  "title":"Osmek",
  "caption":"Osmek Logo Version 2",
  "sizes":{
    "o":{
      "url":"http:\/\/photos.osmek.com\/98725.o.png",
      "html":"<img src="\" alt="\" width="\" height="\" />",
      "type":"png",
      "width":"260",
      "height":"260",
      "file_size":"62307"
    },
    "l":{
      "url":"http:\/\/photos.osmek.com\/98725.l.png",
      "html":"<img src="\" alt="\" width="\" height="\" />",
      "type":"png",
      "width":"260",
      "height":"260",
      "file_size":"62307"
    },
    "sq":{
      "url":"http:\/\/photos.osmek.com\/98725.sq.png",
      "html":"<img src="\" alt="\" width="\" height="\" />",
      "type":"png",
      "width":"70",
      "height":"70",
      "file_size":"2473"
    },
    "thumb":{
      "url":"http:\/\/photos.osmek.com\/98725.thumb.png",
      "html":"<img src="\" alt="\" width="\" height="\" />",
      "type":"png",
      "width":"180",
      "height":"180",
      "file_size":"6899"
    }
  }
}

Comments

Leave A Comment