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
- Host: GitHub
- URL: https://github.com/ceereals/argoapi-nodejs
- Owner: Ceereals
- License: mit
- Created: 2018-11-04T21:16:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-07T07:56:15.000Z (about 5 years ago)
- Last Synced: 2025-06-14T16:16:45.958Z (4 months ago)
- Topics: api, argo, argoapi, javascript, next, node, npm, scuola, scuolanext, scuolanextapi, wrapper
- Language: JavaScript
- Size: 37.1 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# ArgoAPI-NodeJS #
> A simple npm module that allows you to communicate with ScuolaNext Argo's API
[](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