An open API service indexing awesome lists of open source software.

https://github.com/ceereals/argoapi-nodejs

Argo api for nodejs
https://github.com/ceereals/argoapi-nodejs

api argo argoapi javascript next node npm scuola scuolanext scuolanextapi wrapper

Last synced: 4 months ago
JSON representation

Argo api for nodejs

Awesome Lists containing this project

README

          

# ArgoAPI-NodeJS #

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

[![npm version badge](https://img.shields.io/npm/v/sinopia.svg)](https://www.npmjs.com/package/argoapi)

## Install

```bash
npm i argoapi
```

## Usage

### With .then() clause
```javascript
const ArgoAPI = require('argoapi')

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

```
### With async/await method
```javascript
const ArgoAPI = require('argoapi')

//inside an async function
try {
await ArgoAPI.login('school code','username','password')
} catch(e) {
console.log(e)
}
```
## Documentation
For [docs](DOCS.md) see the DOCS.md file.
## License

[MIT](http://vjpr.mit-license.org)

[npm-image]: https://img.shields.io/npm/v/live-xxx.svg
[npm-url]: https://npmjs.org/package/live-xxx