Skip to content

Commit

Permalink
add consulted_portraits endpoint. Bump to version 0.2.19
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitguigal committed Dec 4, 2017
1 parent 9b4895d commit 62ac9cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
5 changes: 0 additions & 5 deletions lib/resources/Albums.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ module.exports = FigureResource.extend({
method: 'GET',
path: '/{slug}/portraits',
urlParams: ['slug']
}),

getMyTickets: figureMethod({
method: 'GET',
path: '/my_tickets'
})

});
13 changes: 6 additions & 7 deletions lib/resources/Users.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}),

Expand All @@ -41,7 +41,6 @@ module.exports = FigureResource.extend({
path: '/me/password/reset/'
}),


register: figureMethod({
method: 'POST',
path: '/register'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 62ac9cd

Please sign in to comment.