flickr

unable to get auth token in flickr

╄→尐↘猪︶ㄣ 提交于 2019-12-11 16:54:42
问题 I am trying to access flickr services from android , to get the full permissions , first of all i fetched forbs using flickr.auth.getFrob method by integrating & converting in MD5 secret + 'api_key' + [api_key] + 'method' + 'flickr.auth.getFrob' i successfully got the frob , but the problem came when i request a authorized token by integrating & converting in MD5 secret + 'api_key' + [api_key] + 'frob' + [frob] + 'method' + 'flickr.auth.getToken' but unfortunately i am getting invalid frob ,

How to download a image in flickr by Python urllib.urlretrieve()?

若如初见. 提交于 2019-12-11 13:01:57
问题 I have a problem that when dowloading a image from flickr.com,the python function urllib.urlretrieve() always return an error [Errno socket error] (10060, 'Operation timed out') for example: import urllib url = "http://farm3.static.flickr.com/2659/4207030547_23e6000d29_o.gif" urllib.urlretrieve(url,"C://tmp.gif") I am Chinese,and I dont know if the "time out" has anything to do with the speed of the the internet in China. Now it falied in downing the .gif! what should i do about this? THX~~~

How to convert an InMemoryUploadedFile in django to a fomat for flickr API?

旧巷老猫 提交于 2019-12-11 10:46:17
问题 I have a class that uploads a file to Flickr. The file is of type 'InMemoryUploadedFile'. I would like to know how to convert or pass the data in the 'InMemoryUploadedFile' file, to a format for flickr's API? Eg: {'photo': ('image.jpg', <InMemoryUploadedFile: image.jpg (image/jpeg)>)} Upload API: https://www.flickr.com/services/api/upload.api.html Error Code <?xml version="1.0" encoding="utf-8" ?> <rsp stat="fail"> <err code="4" msg="Filesize was zero" /> </rsp> 回答1: InMemoryUploadedFile is a

enable flickr and picasa in TinyMCE

只谈情不闲聊 提交于 2019-12-11 10:35:36
问题 My client needs flickr and picasa support in my TinyMCE editor. Has anybody got any advice on plugins which would allow him to do 'standard' embed functions? I know that wordpress supports this, and I'd like to enable it in my own non-wordpress TinyMCE editor in a similar way. Also, I'm using HTMLPurifier on the server to sanitise any input. I've enabled safe iframe embedding, so can support that, but other types of embed may need some extra work on HTMLPurifier. What are the standard ways of

Ruby Hash converted to JSON only shows object names

随声附和 提交于 2019-12-11 09:56:38
问题 I have a Ruby FlickRaw response that I want to convert to JSON. Here's part of its structure: #<FlickRaw::Response:0x7fbd11088678 @h = { "id" => "72157628092176654", "primary" => "6332013810", "owner" => "8623220@N02", "ownername" => "The Library of Congress", "photo" => [ [ 0] #<FlickRaw::Response:0x7fbd1106a628 @h = { "id" => "6332007340", "secret" => "4d92733d70", "server" => "6217", "farm" => 7, "title" => "Woodrow Wilson, Twenty-Eighth President of the United States (LOC)", "isprimary" =

can I add lightbox to flickr feed?

牧云@^-^@ 提交于 2019-12-11 09:54:28
问题 I'm trying to add lightbox to my flickr feed, but I'm not having much success... Is this the correct way of adding "data-lightbox" to the created images?? JS $('<ul />').prependTo('#weddings'); $.getJSON('http://api.flickr.com/services/feeds/photoset.gne?set=72157647565496672&nsid=127682596@N07&lang=en-us&format=json&jsoncallback=?', function(data) { $.each(data.items, function(i,item) { var squares = (item.media.m).replace('_m.jpg', '_q.jpg'); var large = (item.media.m).replace('_m.jpg', '_b

Why won't the images that are grabbed from flickr display?

拟墨画扇 提交于 2019-12-11 09:47:35
问题 I'm in the proccess of learning the flickr api, while using it in a project, and have got a problem... I have it where flickr retrieves the photo data (shown below) but it doesn't display the images themselves... I think this is due to the fact that it's not building the <img /> tags with the src=" " info below is the code that I'm attempting to use... (my class.flickr.php code file) class Flickr{ private $flickr_key; private $flickr_secret; private $format = 'json'; // Setting up flickr_key

Can't use Angular to show json from flickr

走远了吗. 提交于 2019-12-11 08:38:20
问题 I have issue when try to show the data I get. Here is my code: $http({ method:'get', format:'json', url:'http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=MyAPI&per_page=30&format=json', }).success(function(data, status, headers, config){ $scope.photoID = data; alert($scope.photoID) }) The Json file I get: jsonFlickrApi( { photos: { page: 1, pages: 34, perpage: 30, total: 1000, photo: [ { id: "11480313795", owner: "80249365@N00", secret: "d4950d1c38", server: "5482",

Printing Flickr API Response to Console AngularJS

别来无恙 提交于 2019-12-11 07:04:30
问题 I'm currently trying to make the API call work and want to see if it has managed to return the API data from the external source. How do I print an output to the console from the app.js file, so that in this case I can see whether the API call has been returned?/is there a better way of doing this that I'm missing? Should I be using $http or $resource? Current code: js/app.js var app = angular.module('imageViewer', ['ng', 'ngResource']); function AppGallery($scope, $http) { $http.jsonp('https

Uncaught ReferenceError: jsonFlickrFeed is not defined

蓝咒 提交于 2019-12-11 05:37:00
问题 I have the following request : const flickrApiPoint = "https://api.flickr.com/services/feeds/photos_public.gne"; try { $.ajax({ url: flickrApiPoint, dataType: 'jsonp', data: { "format": "json" }, success: function (data) { console.log(data); //formatted JSON data } }); } catch (e) { console.log(e); } but in the end I am getting Uncaught ReferenceError: jsonFlickrFeed is not defined at photos_public.gne?&callback=jQuery331016421245174669186_1523107884637&format=json&_=1523107884638:1 What I am