AngularJS Factory for Flickr JSON REST API requests
angular-flickr-api-factory is an angularjs module with a flickr api factory.
Author: Jonathan Hornung (JohnnyTheTank)
bower install --save angular-flickr-api-factory
npm install --save angular-flickr-api-factory
jtt_flickr
to your application’s module dependencies.
<script src="bower_components/angular-flickr-api-factory/dist/angular-flickr-api-factory.min.js"></script>
<script src="node_modules/angular-flickr-api-factory/dist/angular-flickr-api-factory.min.js"></script>
<script src="angular-flickr-api-factory.min.js"></script>
flickrFactory
flickrFactory.getImagesFromUserById({
id:"<USER_ID>", // username converter: http://idgettr.com/
lang:"<LANGUAGE>", // (optional) https://www.flickr.com/services/feeds/
}).then(function(_data){
//on success
}).catch(function (_data) {
//on error
});
flickrFactory.getImagesFromUserById({
ids:"<USER_ID_1>,<USER_ID_2>", // username converter: http://idgettr.com/
lang:"<LANGUAGE>", // (optional) https://www.flickr.com/services/feeds/
}).then(function(_data){
//on success
}).catch(function (_data) {
//on error
});
flickrFactory.getImagesByTags({
tags:"<TAG_1>,<TAG_2>",
tagmode:"<TAG_MODE>", // (optional) Control whether items must have ALL the tags (tagmode=all), or ANY (tagmode=any) of the tags. Default is ALL.
lang:"<LANGUAGE>", // (optional) https://www.flickr.com/services/feeds/
}).then(function(_data){
//on success
}).catch(function (_data) {
//on error
});
bandsintown - dailymotion - facebook - flickr - footballdata - github - openweathermap - tumblr - vimeo - wikipedia - youtube
MIT