Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnnythetank/angular-flickr-api-factory
AngularJS Factory for Flickr JSON REST API requests
https://github.com/johnnythetank/angular-flickr-api-factory
angular angular-factory angularjs api factory flickr flickr-api
Last synced: about 2 months ago
JSON representation
AngularJS Factory for Flickr JSON REST API requests
- Host: GitHub
- URL: https://github.com/johnnythetank/angular-flickr-api-factory
- Owner: JohnnyTheTank
- License: mit
- Created: 2015-12-13T00:10:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-21T00:35:18.000Z (over 8 years ago)
- Last Synced: 2024-11-19T15:05:20.631Z (about 2 months ago)
- Topics: angular, angular-factory, angularjs, api, factory, flickr, flickr-api
- Language: JavaScript
- Size: 11.7 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**angular-flickr-api-factory** is an angularjs module with a flickr api factory.
[![npm version](https://badge.fury.io/js/angular-flickr-api-factory.svg)](https://badge.fury.io/js/angular-flickr-api-factory)
[![Bower version](https://badge.fury.io/bo/angular-flickr-api-factory.svg)](https://badge.fury.io/bo/angular-flickr-api-factory)Author: Jonathan Hornung ([JohnnyTheTank](https://github.com/JohnnyTheTank))
## Usage
1. Install via either [bower](http://bower.io/), [npm](https://www.npmjs.com/) or downloaded files:
1. `bower install --save angular-flickr-api-factory`
2. `npm install --save angular-flickr-api-factory`
3. download [angular-flickr-api-factory.zip](https://github.com/JohnnyTheTank/angular-flickr-api-factory/zipball/master)
2. Add `jtt_flickr` to your application's module dependencies.
3. Include dependencies in your HTML.
1. When using bower:
```html
```
2. When using npm:
```html
```
3. when using downloaded files
```html
```
4. Use the factory `flickrFactory`### factory methods
```js
flickrFactory.getImagesFromUserById({
id:"", // username converter: http://idgettr.com/
lang:"", // (optional) https://www.flickr.com/services/feeds/
}).then(function(_data){
//on success
}).catch(function (_data) {
//on error
});
``````js
flickrFactory.getImagesFromUserById({
ids:",", // username converter: http://idgettr.com/
lang:"", // (optional) https://www.flickr.com/services/feeds/
}).then(function(_data){
//on success
}).catch(function (_data) {
//on error
});
``````js
flickrFactory.getImagesByTags({
tags:",",
tagmode:"", // (optional) Control whether items must have ALL the tags (tagmode=all), or ANY (tagmode=any) of the tags. Default is ALL.
lang:"", // (optional) https://www.flickr.com/services/feeds/
}).then(function(_data){
//on success
}).catch(function (_data) {
//on error
});
```## Flickr JSONP API
* Docs: https://www.flickr.com/services/feeds/docs/photos_public/
* API Playground: https://apigee.com/console/flickr
* Flickr Username Converter: http://idgettr.com/## More angular-api-factories
[bandsintown](https://github.com/JohnnyTheTank/angular-bandsintown-api-factory) - [dailymotion](https://github.com/JohnnyTheTank/angular-dailymotion-api-factory) - [facebook](https://github.com/JohnnyTheTank/angular-facebook-api-factory) - **flickr** - [footballdata](https://github.com/JohnnyTheTank/angular-footballdata-api-factory) - [github](https://github.com/JohnnyTheTank/angular-github-api-factory) - [openweathermap](https://github.com/JohnnyTheTank/angular-openweathermap-api-factory) - [tumblr](https://github.com/JohnnyTheTank/angular-tumblr-api-factory) - [vimeo](https://github.com/JohnnyTheTank/angular-vimeo-api-factory) - [wikipedia](https://github.com/JohnnyTheTank/angular-wikipedia-api-factory) - [youtube](https://github.com/JohnnyTheTank/angular-youtube-api-factory)## License
MIT