0.2.10 • Published 3 years ago

wiki.js-wrapper v0.2.10

Weekly downloads
-
License
-
Repository
github
Last release
3 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

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago