Skip to content

Instantly share code, notes, and snippets.

@olaoluwa-98
olaoluwa-98 / Kwik.js
Created June 2, 2020 08:17
Kwik implementation
"use strict";
const KwikPackage = require("kwik-node");
const ThirdPartyException = require("../../exceptions/ThirdPartyException");
const KwikAPI = new KwikPackage(process.env.KWIK_DOMAIN_NAME, process.env.NODE_ENV == "production");
class Kwik {
static async getToken() {
let { body: res } = await KwikAPI.adminLogin({