# infoeducatie-api-client

> Client for api.infoeducatie.ro

Latest version **1.0.2** (published 2018-07-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install infoeducatie-api-client
pnpm add infoeducatie-api-client
yarn add infoeducatie-api-client
bun add infoeducatie-api-client
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-07-23 |
| First published | 2018-07-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Laurentiu Ciobanu \|vex |
| Maintainers | iamthevex |

## Links

- npm: https://www.npmjs.com/package/infoeducatie-api-client
- Repository: https://github.com/IAmTheVex/infoeducatie-api-client
- Homepage: https://github.com/IAmTheVex/infoeducatie-api-client#readme
- Issues: https://github.com/IAmTheVex/infoeducatie-api-client/issues
- npm.io page: https://npm.io/package/infoeducatie-api-client

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.1.2

## Recent versions

- 1.0.2 (latest) — 2018-07-23
- 1.0.1 — 2018-07-20
- 1.0.0 — 2018-07-19

## README

This is the TypeScript/JavaScript client for the api.infoeducatie.ro

Check the API repository at: https://github.com/infoeducatie/infoeducatie-api

Sample usage:
```typescript
//typescript
import { InfoeducatieApi, Current } from "infoeducatie-api-client";

(async _ => {
    let api = new InfoeducatieApi();
    
    let current: Current = await api.authorize("your-key").getCurrent();
    if(current.is_logged_in) { // check is the current session is logged in
        console.log(current.user.email); // will print the email of the currently logged in user
    } else {
        console.log("Could not authorize against Infoeducatie's API");
    }
})();
```

The client works with javascript as well... but i recommend using it with typescript :)
```javascript
//javascript
let { InfoeducatieApi } = require("infoeducatie-api-client");

(async _ => {
    let api = new InfoeducatieApi();

    let current = await api.authorize("your-key").getCurrent();
    if(current.is_logged_in) { // check is the current session is logged in
        console.log(current.user.email); // will print the email of the currently logged in user
    } else {
        console.log("Could not authorize against Infoeducatie's API");
    }
})();
```

Check the typings for more info on the usage! The DOCs of the API are pretty much missing (except for the API.md) so i had to reverse it using the ruby code :) Hope you enjoy!

## Want to contribute?
Here's how!
<div align="center">
  <a href="https://github.com/IAmTheVex/zuu/blob/master/CONTRIBUTING.md">
    <img src="https://github.com/IAmTheVex/zuu/raw/master/assets/branching.png">
  </a>
</div>

---
_Source: https://npm.io/package/infoeducatie-api-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
