Command and js client for Koken photo CMS
You need Node and NPM.
In your terminal:
npm install -g koken-cli
Let you upload a folder to a single private album in your koken instance.
koken-cli upload YOUR_EMAIL PASSWORD BASE_KOKEN_URL FOLDER_CONTAINING_PHOTOS
Parameters:
- YOUR_EMAIL: the email you use for your administration account on Koken
- PASSWORD: the password associated with the email on your Koken instance
- BASE_KOKEN_URL: the root url of your koken instance. For example if your admin page is on
http://my-photos.me/koken/admin
then this parameter should behttp://my-photos.me/koken
- FOLDER_CONTAINING_PHOTOS: folder that contains the photos you want to upload.
koken-cli upload [email protected] myPassword39+ http://photos.artist.me allMyPhotos/2015
Let you export all the albums metadata recursively from a given root album. This is meant to provide a way to export the structure that you have set up in koken and reuse that to generate a separated website.
koken-cli getAlbum YOUR_EMAIL PASSWORD BASE_KOKEN_URL ALBUM_ID
Parameters:
- YOUR_EMAIL: the email you use for your administration account on Koken
- PASSWORD: the password associated with the email on your Koken instance
- BASE_KOKEN_URL: the root url of your koken instance. For example if your admin page is on
http://my-photos.me/koken/admin
then this parameter should behttp://my-photos.me/koken
- ALBUM_ID: Id of the root of the albums metadata to export. The ID can found in the properties panel of the album you want to export.
koken-cli getAlbum [email protected] myPassword39+ http://photos.artist.me 1
Promise based JS client. See bin/koken-cli.js
to have an example of how it works.