1.0.6 • Published 10 years ago

smug-shot v1.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

SmugMug Logo

smug-shot

  • Unofficial NodeJS SDK for SmugMug
  • "Stunning Photo Websites. For You, Your Family, Or Your Business

Quick Start

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);
});

Installation

$ npm install smug-shot --save

Features

  • Fast, easy configuration

Docs & Community

Goals

  • 100% Smug Mug End Point Coverage (Currently Much Less)

Dependencies

Examples

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

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

People

The original author of SmugShot is @Jspenc72

License

MIT

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago