Menu

#79 PhotosInterface.getContext Error due 2 Flickr API dependency

open
nobody
None
5
2011-08-07
2011-08-07
Anonymous
No

The Flickr API has started returning a count element which causes an error fault in the PhotosInterface.getContext method call. I coded around this by allowing for unforeseen elements cause a warning only and making the appropriate changes in a custom build to the PhotoContext object.

See Flickr API result below:

<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<count>516</count>
<prevphoto id="4874716337" secret="5a21d222fc" server="4142" farm="5" title="Orchid... ?" url="/photos/bunya-nut/4874716337/in/photostream/" thumb="http://farm5.static.flickr.com/4142/4874716337_5a21d222fc_s.jpg" media="photo" license="0" is_faved="0" />
<nextphoto id="4874716669" secret="fb2aea4f51" server="4099" farm="5" title="20080829_2369" url="/photos/bunya-nut/4874716669/in/photostream/" thumb="http://farm5.static.flickr.com/4099/4874716669_fb2aea4f51_s.jpg" media="photo" license="0" is_faved="0" />
</rsp>

Discussion


Log in to post a comment.

MongoDB Logo MongoDB