From 5cbf8a4d7fa282a49e1a88d7797c1bf4783e93d0 Mon Sep 17 00:00:00 2001 From: benoitguigal Date: Thu, 2 Nov 2017 14:39:35 +0100 Subject: [PATCH] add figure.albums.getPortraits. Bump to version 0.2.16 --- lib/resources/Albums.js | 8 +++++++- package.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/resources/Albums.js b/lib/resources/Albums.js index f57e1dc..8e6a107 100644 --- a/lib/resources/Albums.js +++ b/lib/resources/Albums.js @@ -8,6 +8,12 @@ module.exports = FigureResource.extend({ path: 'users/me/albums', includeBasic: [ 'get', 'edit', 'create', 'getAll', 'del' - ] + ], + getPortraits: figureMethod({ + method: 'GET', + path: '/{slug}/portraits', + urlParams: ['slug'] + }), + }); \ No newline at end of file diff --git a/package.json b/package.json index 6d99edc..b0e4a53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "figure-sdk", - "version": "0.2.15", + "version": "0.2.16", "description": "The Figure JavaScript SDK", "main": "lib/figure.js", "homepage": "https://github.com/postcard/figure-sdk-node",