All Projects → ro-ka → node-500px

ro-ka / node-500px

Licence: MIT license
A wrapper for the 500px.com API

Programming Languages

javascript
184084 projects - #8 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to node-500px

Chafu
A photo browser and camera library for Xamarin.iOS
Stars: ✭ 36 (-12.2%)
Mutual labels:  photos
go-mosaic
相片马赛克 (Photographic mosaic)
Stars: ✭ 23 (-43.9%)
Mutual labels:  photos
jekyll-photos
Dead simple solution to add a photo gallery to a Jekyll site.
Stars: ✭ 47 (+14.63%)
Mutual labels:  photos
flickr scraper
Simple Flickr Image Scraper
Stars: ✭ 148 (+260.98%)
Mutual labels:  photos
GWLPhotoSelector
相册照片多张选择控件
Stars: ✭ 50 (+21.95%)
Mutual labels:  photos
photo-magician
🎨 provide some common image process apis with canvas
Stars: ✭ 12 (-70.73%)
Mutual labels:  photos
timeline
Timeline - A photo organizer
Stars: ✭ 39 (-4.88%)
Mutual labels:  photos
google-photos-api-client-go
Google photos api client in go
Stars: ✭ 35 (-14.63%)
Mutual labels:  photos
SSffmpegVideoOperation
This is a library of FFmpeg for android... 📸 🎞 🚑
Stars: ✭ 261 (+536.59%)
Mutual labels:  photos
TuSDK-for-Android-demo
TuSDK Android 图像 SDK Demo
Stars: ✭ 93 (+126.83%)
Mutual labels:  photos
fotowall
Pictures collage & creativity tool
Stars: ✭ 92 (+124.39%)
Mutual labels:  photos
Facebook-Album-Browser
jQuery plugin for browsing public albums of a Facebook account
Stars: ✭ 76 (+85.37%)
Mutual labels:  photos
Design-Resources
A curated list of design resources from design templates, stock photos, icons, colors, and much more.
Stars: ✭ 943 (+2200%)
Mutual labels:  photos
jiotty-photos-uploader
Uploads your media files to Google Photos creating albums based on the directory structure
Stars: ✭ 54 (+31.71%)
Mutual labels:  photos
tg-file-decoder
Decode Telegram bot API file IDs
Stars: ✭ 30 (-26.83%)
Mutual labels:  photos
FaceAware-Android
this helps to auto zoom for face on ImageView
Stars: ✭ 46 (+12.2%)
Mutual labels:  photos
google-photos-vue
Google Photos album viewer built with Vue.js
Stars: ✭ 17 (-58.54%)
Mutual labels:  photos
flickrsavr
A preservation experiment to save photos from Flickr to your disk with the metadata embedded.
Stars: ✭ 17 (-58.54%)
Mutual labels:  photos
hes-gallery
Light, dependency free, responsive gallery script
Stars: ✭ 27 (-34.15%)
Mutual labels:  photos
tensorflow-image-classifier
Easily train an image classifier and then use it to label/tag other images
Stars: ✭ 29 (-29.27%)
Mutual labels:  photos

node-500px

NPM version

This plugin is a wrapper for the API of 500px.com. To get more details on what the API offers, go to developer.500px.com.

Install

The easiest way is to install through npm:

npm install 500px

Of course you can also clone via git or download the .zip or .tar.gz via the links above.

Getting started

Include the module in your project and initialize it. Important: Use the consumer key provided by 500px, not the JavaScript SDK key, as that is different!

var API500px = require('500px'),
    api500px = new API500px(consumer_key);

Now you are ready to do some calls to the 500px.com API!

GET photos

To retrieve photos, just do the following:

api500px.photos.getPopular({'sort': 'created_at', 'rpp': '100'},  function(error, results) {
  if (error) {
    // Error!
    return;
  }

  // Do something
});

Choose on of the funtions to get photos:

  • getById (photo_id, arguments, callback)
  • getByUsername (username, arguments, callback)
  • getByUserId (user_id, arguments, callback)
  • getFavoritesByUsername (username, arguments, callback)
  • getFavoritesByUserId (user_id, arguments, callback)
  • getFriendsByUsername (username, arguments, callback)
  • getFriendsByUserId (user_id, arguments, callback)
  • getPopular (arguments, callback)
  • getUpcoming (arguments, callback)
  • getEditorsChoice (arguments, callback)
  • getFreshToday (arguments, callback)
  • getFreshYesterday (arguments, callback)
  • getFreshWeek (arguments, callback)
  • searchByTag (tag, arguments, callback)
  • searchByTerm (term, arguments, callback)
  • searchByGeo (geo, arguments, callback)

For more information on the possible arguments, please check the 500px.com photos API

GET users

To retrieve users, just do the following:

api500px.users.getById(1234,  function(error, results) {
  if (error) {
    // Error!
    return;
  }

  // Do something
});

Choose on of the funtions to get users:

  • getById (id, callback)
  • getByName (username, callback)
  • getByEmail (email, callback)
  • getFriendsById (id, arguments, callback)

For more information on the possible arguments, please check the 500px.com users API

GET blogs

To retrieve blogs, just do the following:

api500px.blogs.getFresh({rpp: 50},  function(error, results) {
  if (error) {
    // Error!
    return;
  }

  // Do something
});

Choose on of the funtions to get blogs:

  • getById (id, arguments, callback)
  • getCommentsById (id, arguments, callback)
  • getFresh (arguments, callback)
  • getByUsername (username, arguments, callback)
  • getByUserId (user_id, arguments, callback)

For more information on the possible arguments, please check the 500px.com blogs API

LICENSE

(MIT License)

Copyright (c) 2011 Robert Katzki [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].