imgur icon indicating copy to clipboard operation
imgur copied to clipboard

Create an album

Open elderapo opened this issue 7 years ago • 1 comments

Hey! How can I create an album and add some images to it (either previously uploaded or new)?

elderapo avatar Oct 31 '19 20:10 elderapo

Turns out I'd never written the album endpoints. They've been added in 0.5.0.

You can create an album and add images to it using the Album.create function.

client.Album.create({ title: "some title", ids: ["imageId1", "imageId2"] })

In order to add new images to an album, you'll have to upload them using the Image.upload function. Then, using the returned image id, add it to the album. There's some functions in there to aid with adding images to existing albums.

rmp135 avatar Nov 02 '19 17:11 rmp135