1.0.2 • Published 3 years ago

klicktipp-api v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

klicktipp-api

A node translation of php Wrapper of the klicktipp API.

Please see the documentation of the offical PHP version For more Information,.

Install

npm i klicktipp-api

Usage

const KlicktippConnector = require("klicktipp-connector");

const test = async () => {
  const klicktippConnector = new KlicktippConnector();

  // Replace with username  && password
  const username = "username";
  const password = "password";

  console.log("login", await klicktippConnector.login(username, password));
  // do some stuff here for example
  const tags = await klicktippConnector.tagIndex();
  if (tags) {
    console.log("tags:", tags);
  } else {
    console.log("error:", klicktippConnector.getLastError());
  }
  console.log("logout", await klicktippConnector.logout());
};

test();

For more Information, see the documentation of the offical PHP version.