# shakes

> Shakes is a wrapper for the [moves api](http://dev.moves-app.com). It provides a simple way of accessing your moves data!

Latest version **1.0.0** (published 2013-07-21) · 0 weekly downloads

## Install

```sh
npm install shakes
pnpm add shakes
yarn add shakes
bun add shakes
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2013-07-21 |
| First published | 2013-07-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Maintainers | jonezy |

## Links

- npm: https://www.npmjs.com/package/shakes
- Repository: https://github.com/jonezy/shakes
- Issues: https://github.com/jonezy/shakes/issues
- npm.io page: https://npm.io/package/shakes

## Dependencies (7)

- [hjs](https://npm.io/package/hjs.md) *
- [mocha](https://npm.io/package/mocha.md) ~1.11.0
- [nconf](https://npm.io/package/nconf.md) >= 0.6.7
- [moment](https://npm.io/package/moment.md) ~2.0.0
- [express](https://npm.io/package/express.md) 3.2.6
- [node-oauth](https://npm.io/package/node-oauth.md) >= 0.1.3
- [underscore](https://npm.io/package/underscore.md) ~1.4.4

## Recent versions

- 1.0.0 (latest) — 2013-07-21

## README

# Shakes

Shakes is a wrapper for the [moves api](http://dev.moves-app.com). It
provides a simple way of accessing your moves data!

    // instantiate shakes like so
    var moves = new Shakes({client_id:'your clientid',client_secret:'your client secret');
    
    // moves.authorize will give you a url to send users to so they can authorize your app
    var auth_url = moves.authorize() 
    
    // with the ?code=xxxx that is returned from above this will give you a valid access token
    moves.auth('xxxx', function(token) {
      // store the token in a cookie or something
      req.cookies.token = token.access_token
    });
    
    // call the api using the named endpoint and parameters + token!
    moves.get("dailyActivity", {day:'20130626'}, req.cookies.token, function(data){
      res.render('activity', {'activities':data});
    });

# Installation

### Clone the repo

    git clone git@github.com:jonezy/shakes.git
    
### Install dependencies

    cd shakes && npm install
    
### Setup settings.json

Go to dev.moves-app.com and setup and application, grab the client_id, client_secret and redirect_uri (this is important,
mobile authentication won't work without it) and setup settings.json

    mv example/settings.local example/settings.json
    
    {
        'client_id': 'your client id',
        'client_secret': 'your client secret',
        'redirect_uri': 'your redirect_uri'
    }
    
### Run the example site

    cd example
    node app.js

### Run tests

    mocha -R nyan (the best way to run tests)

---
_Source: https://npm.io/package/shakes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
