Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evanshortiss/flickr-urls
Constructs valid flickr photo CDN URLs.
https://github.com/evanshortiss/flickr-urls
Last synced: 21 days ago
JSON representation
Constructs valid flickr photo CDN URLs.
- Host: GitHub
- URL: https://github.com/evanshortiss/flickr-urls
- Owner: evanshortiss
- Created: 2015-04-07T00:03:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-07T00:04:27.000Z (over 9 years ago)
- Last Synced: 2024-04-09T13:09:28.084Z (7 months ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
flickr-url
==========Construct flickr CDN URLs for images from API responses.
## API
#### getFarmUrl(params)
Get the farm url for an image e.g: *https://farm3.staticflickr.com/2843/72157639326167284_5789bed1bd_z.jpg*#### IMG_SIZES
Contains proprties to easily specify image sizes listed as listed
[here](https://www.flickr.com/services/api/misc.urls.html).* SMALL_SQAURE
* LARGE_SQAURE
* THUMB
* SMALL_240
* SMALL_320
* MEDIUM_500
* MEDIUM_640
* MEDIUM_800
* LARGE_1024
* LARGE_1600
* LARGE_2048
* ORIGINAL## Example Usage:
```javascript
var fUrl = require('flickr-url');var params = {
server: '2843',
secret: '5789bed1bd',
id: '72157639326167284',
farm: '3',
size: fUrl.IMG_SIZES.LARGE_1024
};var url = fUrl.getFarmUrl(params);
```