argoapi

1.0.5 • Public • Published

ArgoAPI-NodeJS

A simple npm module that allows you to communicate with ScuolaNext Argo's API

npm version badge

Install

npm i argoapi

Usage

With .then() clause

const ArgoAPI = require('argoapi')
 
ArgoAPI.login('school code','username','password')
    .then(message => {
    //successfull message
    })
    .catch(err => {
        //error message
    })
 

With async/await method

const ArgoAPI = require('argoapi')
 
//inside an async function
try {
    await ArgoAPI.login('school code','username','password')
} catch(e) {
    console.log(e)
}

Documentation

For docs see the DOCS.md file.

License

MIT

Package Sidebar

Install

npm i argoapi

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

43.4 kB

Total Files

9

Last publish

Collaborators

  • ceereals