From 62ac9cdaf972173123d439ec75316d0beefe6f6a Mon Sep 17 00:00:00 2001 From: benoitguigal Date: Mon, 4 Dec 2017 14:27:38 +0100 Subject: [PATCH] add consulted_portraits endpoint. Bump to version 0.2.19 --- lib/resources/Albums.js | 5 ----- lib/resources/Users.js | 13 ++++++------- package.json | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/lib/resources/Albums.js b/lib/resources/Albums.js index 6810fb6..2afb713 100644 --- a/lib/resources/Albums.js +++ b/lib/resources/Albums.js @@ -14,11 +14,6 @@ module.exports = FigureResource.extend({ method: 'GET', path: '/{slug}/portraits', urlParams: ['slug'] - }), - - getMyTickets: figureMethod({ - method: 'GET', - path: '/my_tickets' }) }); \ No newline at end of file diff --git a/lib/resources/Users.js b/lib/resources/Users.js index c59b64c..44f9f96 100644 --- a/lib/resources/Users.js +++ b/lib/resources/Users.js @@ -20,19 +20,19 @@ module.exports = FigureResource.extend({ path: '/me' }), - getMySavedPortraits: figureMethod({ + getMyConsultedPortraits: figureMethod({ method: 'GET', - path: '/me/saved_portraits' + path: '/me/consulted_portraits' }), - addToMySavedPortraits: figureMethod({ + addToMyConsultedPortraits: figureMethod({ method: 'POST', - path: '/me/saved_portraits' + path: '/me/consulted_portraits' }), - removeFromMySavedPortraits: figureMethod({ + removeFromMyConsultedPortraits: figureMethod({ method: 'DELETE', - path: '/me/saved_portraits/{public_code}', + path: '/me/consulted_portraits/{public_code}', urlParams: ['public_code'] }), @@ -41,7 +41,6 @@ module.exports = FigureResource.extend({ path: '/me/password/reset/' }), - register: figureMethod({ method: 'POST', path: '/register' diff --git a/package.json b/package.json index 38416b7..643d048 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "figure-sdk", - "version": "0.2.18", + "version": "0.2.19", "description": "The Figure JavaScript SDK", "main": "lib/figure.js", "homepage": "https://github.com/postcard/figure-sdk-node",