npm.io
0.1.0 • Published 12 years ago

snowshoestamp

Licence
Version
0.1.0
Deps
2
Vulns
6
Weekly
0
Stars
10

Node.js SDK for the SnowShoe Stamp

http://snowshoestamp.com

Download

The source is available for download from GitHub. Alternatively, you can install using Node Package Manager (npm):

npm install snowshoestamp

Example

SnowShoeStamp = require 'snowshoestamp'

auth = new SnowShoeStamp('APIKEY', 'APISECRET')

# snowshoe api callback
app.all '/snowshoecallback', (req, res) ->
	auth.validateStamp req.body, (response) ->
		# do something

app.get '/stampscreen', (req, res) ->
	# redirect to stamp screen
	auth.stampScreen(req, res)

Development

Dependencies

This command needs to be ran first if CoffeeScript is not installed on your system

  • run sudo npm install -g coffee-script
Setup

Install all of the dependencies

  • run npm install

The following command will watch and compile Coffeescript

  • run cake dev