flickr

How can I get one photo for every Flickr tag by a specific user in one request?

时光总嘲笑我的痴心妄想 提交于 2020-01-02 10:23:47
问题 Basically what I am doing is generating a page of thumbnails. There is one thumbnail for each tag that the specified user has. So if the user has used 50 different tags there will be 50 thumbnails (I'll eventually paginate this.). It works; it's just inefficient. Even with just 8 tags, this is very slow since it has to wait for 9 responses (+1 for the list of tags) from the Flickr servers. Is there a more efficient way to do this? I can't seem to find a better solution whilst scanning the

Invalid Flickr API response

心不动则不痛 提交于 2020-01-01 19:43:10
问题 I've come across a very puzzling issue with the Flickr API. Basically, there's certain queries I (and some developer friends) can run which result in broken resultsets. Basically, what you request, isn't always returned... Here's a few examples: Request: http://api.flickr.com/services/rest/?method=flickr.photos.search&safe_search=1&media=photos&extras=o_dims&per_page=30&page=1&format=json&nojsoncallback=1&api_key=XXXXXXX Response: HTTP/1.1 200 OK Content-Length: 793 Date: Thu, 05 Jan 2012 23

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

拟墨画扇 提交于 2019-12-31 05:15:09
问题 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

JSONException: No value for photo

天涯浪子 提交于 2019-12-25 02:24:45
问题 I'm using the Flickr API to get my app to display images depending on user search. I keep getting this error: JSONException: No value for photo The call to get the photo: public ArrayList<Category> processResults(Response response) { ArrayList<Category> categories = new ArrayList<>(); try { String jsonData = response.body().string(); if (response.isSuccessful()) { JSONObject flickrJSON = new JSONObject(jsonData); //json data JSONArray photoJSON = flickrJSON.getJSONArray("photo"); } } } the

Set page load to black instead of white background?

别说谁变了你拦得住时间么 提交于 2019-12-24 07:01:29
问题 Link to website: http://www.ideagang.co/home.php Is it possible to set the background to black when click from 1 page to another? Right now the website load perfectly with the black background, it's just that when I navigate from one page to another the page flickr for a second..... Is there anyway to resolve this by setting the background to black when loading page internally? 回答1: Not using only CSS. The browser's default color for the background is white, so the flicker you see is the

Flickr API using javascript

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 01:45:29
问题 i want to upload photos using flickr,i have no idea about how to start.to be frank iam new to this API.please guide me to start flickr api in java script. 回答1: Flickr has some JSONP APIs which might be your best bet for using only client-side Javascript. There's a couple tutorials with using JQuery and Flickr JSONP: http://www.richardshepherd.com/how-to-use-jquery-with-a-json-flickr-feed-to-display-photos/ http://www.flickr.com/services/api/response.json.html Good luck! 回答2: Flickr has

PHP div for every 12 images

可紊 提交于 2019-12-23 21:14:59
问题 i have this piece of code: <? include( "http://api.flickr.com/services/feeds/photos_public.gne?id=22352410@N07&lang=en-us&format=php" ); $i = 0; foreach($feed['items'] as $item) { preg_match("/<img src=\"([^\"]+)\" .*? \/>/", $item['description'], $matches); $img_html = $matches[0]; $img_src = $matches[1]; $medium_url = ereg_replace("_m", "_s", $img_src); echo "$img_html"; } ?> How I could make that each N number of pictures appear inside of a <div></div> Example: <div class="container"> <img

$.getJSON calls misbehaving inside a for loop

夙愿已清 提交于 2019-12-23 03:57:09
问题 Here's a description of my problem: i have an array containing ids for some flickr photosets. for each id, i need to make two nested apiCalls (one to flickr photosets api, one to photoinfo api) and add some html to my page the structure is: for(var i=0; i<ARRAY_ID.length; i++){ $.getJSON(apiCall, function(data) { // some processing here $.getJSON(apiCall2,function(data){ //other processing here each "apiCall" is a string containing the correct call to the photosets api (apiCall) and then for

Uploading a photo with Flickr

我怕爱的太早我们不能终老 提交于 2019-12-23 03:51:34
问题 I just started working with the Flickr API today and I have a question: If I allow a person to upload a photo to my website and then in order for me not to store it on my small local server, how can I just upload that photo to Flickr using the PHP Flickr API? That should be a pretty common use case, correct? I use PHP. Thanks, Alex 回答1: Flickr Upload API: http://www.flickr.com/services/api/upload.api.html Simple php script to upload pics on flickr http://www.flickr.com/groups/api/discuss

php library for flickr API

倖福魔咒の 提交于 2019-12-23 03:12:55
问题 I am banging my head trying to use Flickr API... My goal is to be able to upload images and create albums in my Flickr account from my website... I tried the phpFlickr library but apparently it needs updates for getting authenticated tokens...It keeps giving me "Invalid auth token". I did some reading on how to get tokens and using DPZFlickr managed to get oauth_token & oauth_verifier but failed to exchange that with an access token...It also failed in uploading any photo to my account using