GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CISC/scjs: A simple interface to Scala Content Manager web-services.

BranchesTags
Open more actions menu

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
test
test
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.d.ts
index.d.ts
 
 
index.js
index.js
 
 
package.json
package.json
 
 

Repository files navigation

scjs - A simple interface to Scala Content Manager web-services.

NPM Version NPM Downloads GitHub Issues GitHub Pull Requests Inline docs Known Vulnerabilities

This module is loosely modelled after the scws2 Python module, supporting the 2.x REST API.

Example usage (set DEBUG=scjs for debug output):

const { ConManager } = require('scjs');

const baseurl = "http://localhost/ContentManager";
const username = "user";
const password = "pass";
const cm = new ConManager(baseurl);

(async () => {
    const resp = await cm.login(username, password);

    try {
        const players = await cm.get('players', { 'limit': 0, 'offset': 0, 'fields': 'id,name,enabled,active,type' });
        console.log(players.list);

        const media = await cm.get('media', { 'limit': 10, 'filters': '{"type":{"values":["IMAGE"]}}' });

        let items = [];
        for (const item of media.list) {
            items.push(cm.download(item.downloadPath, item.name));
        }
        await Promise.all(items);

        const item = await cm.upload('LocalFolder/MyPicture.jpg', 'RemoteFolder/MyPicture.jpg');
        console.log(item);
    } finally {
        await cm.post('auth/logout');
    }
})().catch((e) => {
    console.log(e);
});

About

A simple interface to Scala Content Manager web-services.

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.