flickr

Flickr, Tumblr, Instagram share intent in Android

耗尽温柔 提交于 2019-12-11 01:25:41
问题 I want to share image via Flickr, Tumblr, Instagram. I want to do this with these 3 installed apps. I found for Instagram: Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setType("image/*"); shareIntent.putExtra(Intent.EXTRA_TEXT, "" + getShareText()); shareIntent.putExtra(Intent.EXTRA_SUBJECT, "" + getShareText()); shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + file.getAbsolutePath())); shareIntent.setPackage("com.instagram.android"); Can I have Tumblr and

Retrieving flickr favorites

老子叫甜甜 提交于 2019-12-10 21:55:08
问题 I can't get this to work... what could be the problem? import flickrapi api_key = '1234...' flickr = flickrapi.FlickrAPI(api_key) user = '43699959@N02' favs = flickr.favorites_getPublicList(user_id = user) >>> favs.items() [('stat', 'ok')] >>> favs.text '\n' Where are my favorite photo's? Note: It does work via this testing page: http://www.flickr.com/services/api/explore/?method=flickr.favorites.getPublicList 回答1: The result is correct -- as per the URL you gave, the XML nodes are empty

JQuery / Flickr API issue with get Photo set

故事扮演 提交于 2019-12-09 13:42:01
问题 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

Does Flickr support CORS? SECURITY ERROR with getImageData

限于喜欢 提交于 2019-12-09 13:09:20
问题 Hello dear community. I'm trying to create extract colors from images fetched from Flickr. That all works really great to the point when I try to process that images in canvas with getImageData(). As described through WHATWG loading an image into canvas set a flag so you cannot maniplate that. So my question is does FLICKR support CORS? <script type="text/javascript"> var img= new Image; var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); var src = "fetched

How do REST APIs work with JavaScript when the same-origin policy exists for browsers?

空扰寡人 提交于 2019-12-09 04:08:44
问题 I am working with Flickr's REST API and it's working fine. By that, I mean I'm making an AJAX call to the Flickr API and getting a JSON object back, parsing the object, etc. etc. But this raises a question in my mind. If browsers follow the same-origin policy, then how can they make these types of API requests? This DEMO fiddle is working, but it sends a cross-domain request to the Flickr domain. How does this cross-domain request work? The cross-domain request: $.getJSON("http://api.flickr

Beautiful soup parsing XML

限于喜欢 提交于 2019-12-08 13:05:55
问题 I have this datastructure. <photo id="123" owner="12345" secret="xx" server="12" farm="4" title="109L_0195" ispublic="1" isfriend="0" isfamily="0" views="0" tags="military czechrepublic kmk koně humpolec všestrannost humpoec vysocinaregion" latitude="49.550933" longitude="15.36652" accuracy="16" context="0" place_id="tg5cqdpWW7q18rE" woeid="790349" geo_is_family="0" geo_is_friend="0" geo_is_contact="0" geo_is_public="1"> <description> Kvalifikační kolo KMK - všestrannost 18.7.2014 - Humpolec

Uploading a photo with Flickr

為{幸葍}努か 提交于 2019-12-08 06:22:25
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 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/72157621716056865/ Maybe this will point you in the right direction since depending on what you want to do with

AngularJS - Calling Flickr API fails with warning message

谁说我不能喝 提交于 2019-12-07 15:22:34
问题 I have a simple AngularJS app that allows one to search for Flickr photos. The problem is in IE I get the the following message when I call the Flickr API: This page is accessing information that is not under its control. This poses a security risk. Do you want to continue? If I click Yes, the app works and loads the relevant photos. However, in Chrome and Firefox I do not get any message and nothing happens - no photos are loaded. Here is the code: function PhotoController($scope, photoData)

Flickr API for location based images

╄→尐↘猪︶ㄣ 提交于 2019-12-07 05:02:32
问题 I want to get images of cities when city name is entered in search field in iOS. I am using flickr API but whenever I enter any longitude and latitude values, I only get returned an empty array. What should I do. I am using this URL: http://api.flickr.com/services/rest/?method=flickr.photos.geo.photosForLocation&api_key=e3d577010e5979a2ad2a22714abd901e&lat=40.6700&lon=73.9400&format=json&nojsoncallback=1&auth_token=72157638668602974-e1a3a3aa1e6d3dd8&api_sig=a0233b016c863b1662aeb21a664c351a

get base64 image from image url using angular 2

佐手、 提交于 2019-12-06 15:27:27
问题 I'm trying to display images that their URLs comes from Flickr photo search API. I want to convert these image URLs to base64 so I can store the images in Session Storage and only call Flickr API if images do not exist in Session Storage: export class AComponent { results: any[]; base64; constructor(private http: HttpClient, private jsonp: Jsonp, private router: Router, private storage: SessionStorageService) { if (!sessionStorage.getItem("results")) { this.http.get('https://api.flickr.com