flickr

Flickr authentication with Oauth

£可爱£侵袭症+ 提交于 2019-12-22 11:33:25
问题 I am building a custom photo gallery for my site which uses Flickr as the backend. I feel like I need to authenticate with Flickr using the new Oauth system. Everytime I look into using Oauth with Flickr it all shows how to do it to "provide in your applications a secure way for people to sign-in into their Flickr accounts" I don't need anyone else to be able to sign into my site. I just need it signed in to MY Flickr account all the time. All the functionality that links to flickr is behind

Android: Upload picture on Flickr

喜欢而已 提交于 2019-12-22 10:13:32
问题 I have to make an android app to upload a picture from mobile to Flickr. I started reading API Flickr Documentation, but still miss understanding how to autenticate and how to upload. I also read similar questions here, but they show incomplete code snippet, so I can't test them. Can anyone help me? Any link to start? 回答1: Have a look at the flickrj library. It's designed to work with Android. It comes with source code to a sample app available in the Google Play market. 回答2: Full Demo

Flickr JSON returning error in JavaScript cross domain

烂漫一生 提交于 2019-12-22 01:41:20
问题 I have this code and I'm trying to return Flickr API, however I get the following error. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback={callback}&tags=london&tagmode=any&format=json . This can be fixed by moving the resource to the same domain or enabling CORS. How do I enable this in my code? enter MyFeed.prototype.getFeed = function(data) { console.log(f.feedUrl); var request

jQuery, JSON, Flickr API

谁说我不能喝 提交于 2019-12-21 06:24:24
问题 $.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

jQuery, JSON, Flickr API

与世无争的帅哥 提交于 2019-12-21 06:24:19
问题 $.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

JSON formatting adding \ characters when I append file, but not to string in output

妖精的绣舞 提交于 2019-12-20 04:22:49
问题 I am using the following function to get json from the flickr API . The string it returns is a properly formatted chunk of JSON: def get_photo_data(photo_id): para = {} para["photo_id"] = photo_id para["method"] = "flickr.photos.getInfo" para["format"] = "json" para["api_key"] = FLICKR_KEY request_data = params_unique_combination("https://api.flickr.com/services/rest/", para) if request_data in CACHE_DICTION: return CACHE_DICTION[request_data] else: response = requests.get("https://api.flickr

Shared secret with API in an Ajax Adobe AIR app

£可爱£侵袭症+ 提交于 2019-12-19 03:39:05
问题 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

Custom JSON Deserialization with Jackson

て烟熏妆下的殇ゞ 提交于 2019-12-17 05:01:47
问题 I'm using the Flickr API. When calling the flickr.test.login method, the default JSON result is: { "user": { "id": "21207597@N07", "username": { "_content": "jamalfanaian" } }, "stat": "ok" } I'd like to parse this response into a Java object: public class FlickrAccount { private String id; private String username; // ... getter & setter ... } The JSON properties should be mapped like this: "user" -> "id" ==> FlickrAccount.id "user" -> "username" -> "_content" ==> FlickrAccount.username

How to Access Child Item In JSON Array

淺唱寂寞╮ 提交于 2019-12-14 04:13:43
问题 I am querying FlickR based on certain search terms, and the response is a JSON Array. Here is the root level along with the first two results: { photos: { page: 1, pages: 4222, perpage: 100, total: "422175", photo: [ { id: "28571356563", owner: "8372889@N03",secret: "c4ca6c4364", server: "8050", farm: 9, title: "95040021.jpg", ispublic: 1, isfriend: 0, isfamily: 0, url_m: "https://farm9.staticflickr.com/8050/28571356563_c4ca6c4364.jpg", height_m: "332", width_m: "500" }, { id: "28571342883",

$getJSON .fail not firing

不打扰是莪最后的温柔 提交于 2019-12-13 07:39:46
问题 Can't alert $getJSON .fail: this.flickrPics = ko.observableArray(); ko.computed(function() { $.getJSON( 'https://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?', { tags : data.name, format : 'json' }) .done(function(response) { for (var i = 0; i < 10; i++) { self.flickrPics.push(response.items[i].media.m); } }) .fail(function(error) { alert(error + 'error'); // $('.pics-box h2').text("sorry, pictures cant be loaded at the moment"); }); }, this); Everything works perfect except