From 832a60f8dadf8518f7facd91527be7d1fa080119 Mon Sep 17 00:00:00 2001 From: Max Tobias Weber Date: Thu, 30 Jan 2020 13:45:39 +0100 Subject: [PATCH] Update readme examples to ensure compatibility Thingiverse API seems to have changed since this library was released. access token should be placed in request body under the key "token". --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 47ec08c..54f60f3 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,10 @@ npm install thingiverse-js const thingiverse = require('thingiverse-js'); const token = 'abcdefgh12345'; -thingiverse('users/me', { token }).then(res => { +thingiverse('users/me', { token: token }).then(res => { console.log('My location is "%s" on Thingiverse', res.body.location); return thingiverse.patch(`users/${res.body.name}`, { - token, + token: token, body: { location: 'New Caprica' } }); }).then(res => {