0.0.0-beta.1 • Published 1 year ago

photoprism v0.0.0-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

PhotoPrism JS SDK

an unofficial JavaScript SDK for the PhotoPrism API

Usage

npm install photoprism
import { PhotoPrism } from 'photoprism';

// init instance
const photoprism = new Photoprism("http://localhost:2342", "admin", "insecure")

// get albums
const albums = await photoprism.getAlbums()

// create album
const album = await photoprism.createAlbum({ Title: "test" })


// upload file in album
const uploadFile = createReadStream(__dirname + "/sample.png")
let upload = await photoprism.uploadPhotoToAlbum([album.UID!], uploadFile)

more use cases can be found in the test

LICENSE

MIT

0.0.0-beta.1

1 year ago

0.0.0-beta

1 year ago

0.0.0-alpha

1 year ago