flickr

Jquery JSON Flickr API Returning Photos in a Set

若如初见. 提交于 2019-12-03 05:13:58
问题 I am trying to get a specified set from Flickr and then display the images in that set using the JSON and REST API. Here is the code I am using: $.getJSON("http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=xxx&set=72157623858739780&format=json&jsoncallback=?", function(data){ $.each(data.items, function(i,item){ $("<img/>").attr("src", item.media.m).appendTo("#images"); }); }); I removed the api key from the example. The url with my key in it, when typed into my

jQuery $.getJSON - How do I parse a flickr.photos.search REST API call?

瘦欲@ 提交于 2019-12-03 03:19:54
问题 Trying to adapt the $.getJSON Flickr example: $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?", function(data){ $.each(data.items, function(i,item){ $("<img/>").attr("src", item.media.m).appendTo("#images"); if ( i == 3 ) return false; }); }); to read from the flickr.photos.search REST API method, but the JSON response is different for this call. This is what I've done so far: var url = "http://api.flickr.com/services/rest/

Jquery JSON Flickr API Returning Photos in a Set

倖福魔咒の 提交于 2019-12-02 18:29:29
I am trying to get a specified set from Flickr and then display the images in that set using the JSON and REST API. Here is the code I am using: $.getJSON("http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=xxx&set=72157623858739780&format=json&jsoncallback=?", function(data){ $.each(data.items, function(i,item){ $("<img/>").attr("src", item.media.m).appendTo("#images"); }); }); I removed the api key from the example. The url with my key in it, when typed into my web browser, returns the following error: jsonFlickrApi({"stat":"fail", "code":1, "message":"Photoset

jQuery $.getJSON - How do I parse a flickr.photos.search REST API call?

て烟熏妆下的殇ゞ 提交于 2019-12-02 16:51:21
Trying to adapt the $.getJSON Flickr example: $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?", function(data){ $.each(data.items, function(i,item){ $("<img/>").attr("src", item.media.m).appendTo("#images"); if ( i == 3 ) return false; }); }); to read from the flickr.photos.search REST API method, but the JSON response is different for this call. This is what I've done so far: var url = "http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=YOURAPIKEYHERE&tags=yokota+air+base&safe_search=1&per_page=20"; var

Replacing characters got from javascript

天大地大妈咪最大 提交于 2019-12-02 15:56:11
问题 i'm making a program that extracts all the pictures from a flickr set. I found in the code a big String with every picture link, the problem is this: The links have the next format: https:\/\/c2.staticflickr.com\/4\/3925\/14562233192_3fe2b8fe1b_s.jpg but i'm unable of removing the '\' character, despite using the "\" escape sequence. My replacing code is the following, ret contains a lot of links separated by '\n': ret =ret.replaceAll("\\", ""); what in the world am i forgetting? My error

Form UI Freeezes even after using Backgroundworker when using Flickr.Net API

强颜欢笑 提交于 2019-12-02 09:08:07
Im trying to upload some images using the Flickr.net API.The Images are uploaded but the User Interface freezes.I have inserted the code for uploading in a Background worker private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { foreach (var item in imagelist) { flickr.UploadPicture(item, Path.GetFileName(item), null, null, true, false, true); } MessageBox.Show("Success"); } The flickr object is created earlier from another form and passed to this form. I call the worker with if(worker.IsBusy==false){backgroundWorker1.RunWorkerAsync();} when a button is clicked. Two common

Upload Image on Flickr with android

假装没事ソ 提交于 2019-12-01 14:27:50
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 //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.OnClickListener() { @Override public void onClick(View v) { if (fileUri == null) { Toast.makeText

Flickr API iOS app “POST size too large!”

[亡魂溺海] 提交于 2019-12-01 12:27:14
I am trying to send a photo from an iOS app to Flickr using the API. I have successfully got the authorisation working and have a token ready to use. I am sending the photo data over a HTTP POST and am following the formatting guide here. http://www.flickr.com/services/api/upload.example.html But the response I get back from the API is... <err code="93" msg="POST size too large! Try something smaller, mmkay?" /> I have read that it may have something to do with the boundary's. I've doubled checked regarding @samrowlands comments on this post. http://www.flickr.com/groups/api/discuss

How to access private photos through Flickrj Api?

这一生的挚爱 提交于 2019-11-30 22:57:40
I'm making an authenticated call to access photos through Flickr API. But I am only getting my public photos but not any private photos. Given below is the code I'm using, Flickr f; RequestContext requestContext; String frob = ""; String token = ""; DocumentBuilder xmlParser = null; public void getImages() throws ParserConfigurationException, IOException, SAXException, FlickrException, URISyntaxException, NoSuchAlgorithmException { DocumentBuilderFactory dcb = DocumentBuilderFactory.newInstance(); try { this.xmlParser = dcb.newDocumentBuilder(); } catch (ParserConfigurationException ex) { ex

Shared secret with API in an Ajax Adobe AIR app

心已入冬 提交于 2019-11-30 22:01:57
I'm pretty new to developing AIR apps, so maybe this is a dumb question, but I can't seem to find any answers from google. Any help you can give me is greatly appreciated. I'm building an AIR app with Ajax using an api that is identical to flickr's Api, with a shared secret key. The problem is that the air installation package contains all the source and I don't want to give away my shared secret. Is there any way to do this? Can I hide some source, or somehow include this shared secret within the app without giving it away? Thanks for your help. You may want to use EncryptedLocalStore to