miertschink / qbank3api-typescript

A TypeScript-Wrapper for QBank 3's API. Provides a simple way to communicate with QBank 3 from TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qbank3api-typescript

A TypeScript-Wrapper for QBank 3's API. Provides a simple way to communicate with QBank 3 from TypeScript

Contribute

This is a very early version of this wrapper and it's a port from the official PHP-Wrapper

It's highly appreciated if you want to contribute to this project.

Usage

import {QbankApi} from 'qbank3api-typescript';

const qbankApi = new QbankApi(config.qbankApi.apiEndpoint, {
  username: '<YOUR_API_USERNAME>',
  password: '<YOUR_API_PASSWORD>',
  clientId: '<YOUR_API_CLIENT_ID>',
});
await qbankApi.connect();
await qbankApi.media().updateProperties(mediaId, [
  {
    key: 'product_data',
    value: JSON.stringify(productData),
  },
]);

About

A TypeScript-Wrapper for QBank 3's API. Provides a simple way to communicate with QBank 3 from TypeScript

License:Apache License 2.0


Languages

Language:TypeScript 96.5%Language:JavaScript 3.5%