- Unofficial NodeJS SDK for SmugMug
- "Stunning Photo Websites. For You, Your Family, Or Your Business"
Create the app:
$ mkdir newApp
$ cd newApp
$ npm init
Install smug-shot as a dependency:
$ npm install --save smug-shot
Example Use
//index.js
var username = "" //Your SmugMug App Username
var apiKey = "" //Your SmugMug App API Key
var humble = require('smug-shot')({username: username, api_key: apiKey})
humble.albums.get()
.then(function(res){
console.log('albums().get then()')
console.log(res.Albums.length)
})
.catch(function(error){
console.log("Caught the error")
console.error(error);
});
$ npm install smug-shot --save
- Fast, easy configuration
- 100% Smug Mug End Point Coverage (Currently Much Less)
To view the examples, clone the
$ git clone git://github.com/jspenc72/smug-shot.git --depth 1
$ cd smug-shot
$ npm install
Then run whichever example you want:
$ node examples/example.js
To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test
The original author of SmugShot is @Jspenc72