npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

clubkonnect

v1.0.6

Published

Clubkonnect API NodeJS SDK

Downloads

4

Readme

Clubkonnect NodeJS Library

Services available on this package

  • Airtime purchase
  • Mobile data purchase
  • Cable purchase
  • Electricity purchase

Installation

npm install clubkonnect

Usage

var Clubkonnect = require('clubkonnect').Clubkonnect;
var konnect = new Clubkonnect('USER_ID', 'API_KEY');

Wallet Balance

var Clubkonnect = require('clubkonnect').Clubkonnect;
var konnect = new Clubkonnect('USER_ID', 'API_KEY');

//Check Wallet Balance
konnect.Wallet.getBalance().then((response)=>{
  
    console.log(response)

  }).catch((err)=>{

    console.error(err)

  })

Airtime purchase

var Clubkonnect = require('clubkonnect').Clubkonnect;
var konnect = new Clubkonnect('USER_ID', 'API_KEY');

//Make payment
konnect.Airtime.charge(
    {
        recipientPhoneNumber: '09054321256',
        provider: '9mobile' || 'mtn' || 'glo' || 'Airtel',
        amount: 100
    }

  ).then((response)=>{

    console.log(response)

  }).catch((err)=>{

    console.error(err)

  })

//Confirm payment
konnect.Airtime.query(orderID)

    .then((response)=>{

        console.log(response)

    }).catch((error)=>{

        console.log(error)
    })

Mobile Data Purchase

var Clubkonnect = require('clubkonnect').Clubkonnect;
var konnect = new Clubkonnect('USER_ID', 'API_KEY');

//Make payment
konnect.Mobiledata.charge(
    {
        recipientPhoneNumber: '09054321256',
        bundle: '500MB',
        provider: '9mobile' || 'mtn' || 'glo' || 'Airtel'
    }

  ).then((response)=>{

    console.log(response)

  }).catch((err)=>{

    console.error(err)

  })

//Confirm payment
konnect.Mobiledata.query(orderID)

    .then((response)=>{

        console.log(response)

    }).catch((error)=>{

        console.log(error)
    })

Data Bundles

MTN
  • "1GBS" for 1GB SME Bundle
  • "1GB"
  • "2GBS" for 2GB SME Bundle
  • "2.5GB"
  • "5GBS" SME 5GB Bundle
9mobile
  • "500MB"
  • "1GB"
  • "1.5GB"
  • "2.5GB"
  • "4GB"
  • "5.5GB"
  • "11.5GB"
  • "15GB"
  • "27GB"
Glo
  • "1.8GB"
  • "4.5GB"
  • "7.2GB"
  • "8.75GB"
  • "12.5GB"
Airtel
  • "1.5GB"
  • "3.5GB"
  • "7GB"

Cable Purchase

var Clubkonnect = require('clubkonnect').Clubkonnect;
var konnect = new Clubkonnect('USER_ID', 'API_KEY');


//Make payment
konnect.Cable.charge(
    {
        smart_card_no: '202248506758',
        provider: 'GOtv',
        package: 'Lite'
    }

  ).then((response)=>{

    console.log(response)

  }).catch((err)=>{

    console.error(err)

  })

//Verify SmartCard number
konnect.Cable.verifyCard("2022485085")

    .then((response)=>{

        console.log(response)

    }).catch((error)=>{

        console.log(error)
    })

//Confirm payment
konnect.Cable.query(orderID)

    .then((response)=>{

        console.log(response)

    }).catch((error)=>{

        console.log(error)
    })

Packages for Cable

DStv
  • "Access"
  • "Family"
  • "Compact"
  • "Compact Plus"
  • "Premium"
  • "Premium + HD/Extra View"
GOtv
  • "Lite"
  • "Value"
  • "Plus"
  • "Max"
Startimes
  • "Nova"
  • "Basic"
  • "Smart"
  • "Classic"
  • "Unique"
  • "Super"

Electricity Purchase

var Clubkonnect = require('clubkonnect').Clubkonnect;
var konnect = new Clubkonnect('USER_ID', 'API_KEY');


//Make payment
konnect.Electricity.charge(
    {
        meter_no: '7077537537839',
        type: 'prepaid',
        company: 'EKEDC',
        amount: 1000
    }

  ).then((response)=>{

    console.log(response)

  }).catch((err)=>{

    console.error(err)

  })

//Verify Meter number
konnect.Electricity.verifyMeter("7077537537839")

    .then((response)=>{

        console.log(response)

    }).catch((error)=>{

        console.log(error)
    })

//Confirm payment
konnect.Electricity.query(orderID)

    .then((response)=>{

        console.log(response)

    }).catch((error)=>{

        console.log(error)
    })

Companies

  • "EKEDC" for Eko Electricity
  • "IKEDC" for Ikeja Electricity
  • "AEDC" for Abuja Electricity
  • "KEDC" for Kano Electricity
  • "PHEDC" for PortHarcourt Electricity
  • "JEDC" for Jos Electricity
  • "IBEDC" for Ibadan Electricity
  • "EEDC" for Enugu Electricity