0.0.4 • Published 9 years ago

thingiverse-api v0.0.4

Weekly downloads
18
License
-
Repository
github
Last release
9 years ago

Interface to the Thingiverse API

Getting started

  1. npm install thingiverse-api
  2. sign in to thingiverse and create an app, when given the option to set a callback url, set it to urn:ietf:wg:oauth:2.0:oob
  3. Direct your user to https://www.thingiverse.com/login/oauth/authorize?client_id=<your apps' client id> and get a thingiverse token.
  4. Query the user for that token and initialize the thingiverse-api with it

Usage

var ThingiverseAPI = require('thingiverse-api');
var thingiverse = new ThingiverseAPI(the_users_thingiverse_token);
thingiverse.get('users/me', function(err, data) {
  console.log("you are signed in as " + data.name);
  thingiverse.get('users/'+data.name+'/things', function(err, data) {
    console.log("you have " + data.length + " things");
  });
});
0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago