flickr

How do I parse this Flickr response?

夙愿已清 提交于 2019-12-04 05:09:47
I get this from a sample Flickr response in their api site: jsonFlickrApi({"method":{"_content":"flickr.test.echo"}, "format":{"_content":"json"}, "api_key":{"_content":"8038f7f7d7151ccbf6df2aa10b1b35ae"}, "stat":"ok"}) I can see the dictionary in there, right after the words jsonFlickApi. But how do I get rid of that leading text and put the dictionary into my NSDictionary? Use the NSJSONSerialization class to parse the JSON data. Edit: The jsonFlickrApi(...) indicates that you're using a JSONP endpoint to talk to Flickr. You don't need this; a plain JSON endpoint is fine. According to this

Upload Image on Flickr with android

三世轮回 提交于 2019-12-04 02:36:44
问题 i need to integrate Flickr with android. I am done with authentication.i need to upload image to flickr but i am unaware how to do same. i refer document : http://www.flickr.com/services/api/upload.api.html for the same. Can anybody help me 回答1: //change your key and secreat key private static final String API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; //$NON-NLS-1$ public static final String API_SEC = "xxxxxxxxxxxxx"; //$NON-NLS-1$ View.OnClickListener mFlickrClickListener = new View

JavaScript library similar to Imagemagick (i.e., resize images and pictures while maximizing picture fidelity)?

99封情书 提交于 2019-12-04 00:40:44
We would like to simulate Imagemagick functionality, but only in Javascript. Do any libraries exist? Specifically, the goal is to display thumbnails of images without distorting the thumbnail to the point where it is hardly resembles the original. This often happens with simple resizing via CSS. One approach is to resize images on the server with Imagemagick. The question is, if we don't want to store the thumbnails (because the originals are loaded from a third party which doesn't supply thumbnails), can we simulate Imagemagick's natural and high-fidelity resizing functionality with a

how to get correct JSON object from flickr API

拈花ヽ惹草 提交于 2019-12-03 23:43:03
I used flickr photo search method to retrieve public photos. when I run it with jquery, it works fine, I get the json object in correct form. { "photos": { "photo": [ { ......... } ] }, "stat": "ok" } But when I use it with AngularJs, I got the same object with a prefix jsonFlickrApi jsonFlickrApi({ "photos": { "photo": [ { ...... } ] }, "stat": "ok" }) what I used in AngularJs is: myApp.service('dataService', function($http) { delete $http.defaults.headers.common['X-Requested-With']; this.flickrPhotoSearch = function() { return $http({ method: 'GET', url: 'https://api.flickr.com/services/rest

ObjectiveFlickr Photo Upload Error

六月ゝ 毕业季﹏ 提交于 2019-12-03 21:14:22
I'm working on using the ObjectiveFlickr library to upload photos to Flickr from my iPhone app. I am able to authorize the app and perform general requests, but I am getting an error while trying to upload a photo. The photo is meant to be uploaded is an image captured using AVFoundation. Here is the relevant code: UIImage *image = [[UIImage alloc] initWithData:imageData]; if ([[AppDelegate sharedDelegate].apiContext.OAuthToken length]) { NSData *uploadData = UIImageJPEGRepresentation(image, 1); if (!flickrRequest) { flickrRequest = [[OFFlickrAPIRequest alloc] initWithAPIContext:[AppDelegate

jQuery, JSON, Flickr API

别来无恙 提交于 2019-12-03 21:11:27
$.ajax({ url: "http://api.flickr.com/services/rest/?method=flickr.photos.getSizes&format=json&api_key=708f179518b2093d23f0aef284b565a4&photo_id=6115633659&jsoncallback=?", type: "GET", cache: true, dataType:'jsonp', success: function (data) { var largeSRC = data.sizes.size.Original; alert(largeSRC); } }); So yeah, basically, I have no clue how to... I don't even know how to term it. I am trying to to get the URL for the original size. http://www.flickr.com/services/api/explore/flickr.photos.getSizes jsonFlickrApi({ "sizes": { "canblog": 0, "canprint": 0, "candownload": 1, "size": [ { "label":

JQuery / Flickr API issue with get Photo set

守給你的承諾、 提交于 2019-12-03 17:32:59
I have been trying to put together a photo albumn system that is managed via Flickr, I have been spending the past day or so playing around with the Flickr API and have the following code, but it just doesn't return the expected HTML. insetad I get an error in my browser for the line above ($('#images').html(theHtml);) <script type="text/javascript"> $(document).ready(function(){ $.getJSON('http://api.flickr.com/services/rest/?&method=flickr.photosets.getPhotos&api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxx&photoset_id=xxxxxxxxxxxxxxxxxxxx=&format=json&jsoncallback=?', displayImages); function

Flickr API returning duplicate photos

﹥>﹥吖頭↗ 提交于 2019-12-03 16:26:13
I've come across a confusing issue with the flickr API. When I do a photo search (flickr.photos.search) and request high page numbers, I often get duplicate photos returned for different page numbers. Here's three URLs, they should each return three sets of different images, however, they - bizarrely - return the same images: http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=ca3035f67faa0fcc72b74cf6e396e6a7&tags=gizmo&tag_mode=all&per_page=3&page=6820 http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=ca3035f67faa0fcc72b74cf6e396e6a7&tags=gizmo&tag

Populating a GridView with ImageViews dynamically/programmatically using a ImageAdapter

半城伤御伤魂 提交于 2019-12-03 15:28:32
I try to develop an Android App which allows the user to fetch data from flickr and show it in a GridView (with some nice 3D-Animation). After some adventures i got it almost running, but now I'm stuck. Here's the problem: I got a UI Thread "LoadPhotosTask" which gets the pictures from flickr, just like the open source application photostream . In the method onProgressUpdate(LoadedPhoto... value) of that subclass I call addPhoto() . Until now everythings fine - I got some nice Bitmap and Flickr.photo data with all the information I need. @Override public void onProgressUpdate(LoadedPhoto...

Load one random flickr image & append to div

天涯浪子 提交于 2019-12-03 08:05:51
I'm basically trying to load in one random flickr image taken from a specific user and specific set which then gets displayed within a div with the id of 'flickr-wrap'. I'm trying to manipulate this JSON code to do what I want but haven't a clue where to start. This code currently loads in lots of images (I just want one to load in) and uses tags (but I want user and sets instead), could anyone help me out? $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?",{ id: "51997044@N03", tagmode: "any", format: "json" }, function(data) { $("<img/>").attr({src: data.items