0.2.10 • Published 2 years ago

wiki.js-wrapper v0.2.10

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

wiki.js-wrapper

Tests NPM Version

A WIP wrapper for the Wiki.js API (GraphQL).

Documentation

Wiki.js-wrapper Documentation

Example

const {Client} = require("wiki.js-wrapper");
const options = {
    baseURL: "http://example.com/graphql",
    token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcGkiOjEsImdycCI6MSwiaWF0IjoxNjQ5MjAzMjAwLCJleHAiOjE2ODA3MzkyMDAsImF1ZCI6InVybjp3aWtpLmpzIiwiaXNzIjoidXJuOndpa2kuanMiLCJ0eXBlIjoiZmFrZS1hc3MtdG9rZW4ifQ.FEWmrlsNrmbf9ESIgOhECNB_N9wRofUbM6UYLGpUrlw"
}
const client = new Client(options);

client.login().then((title)=>{
    console.log(`Connected to ${title}.`);
    client.pages.get(1).then(page => {
        console.log(page);
    }).catch(e => {
        console.log(e);
    });
}).catch(e => {
    console.log(e);
});
0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago