2.1.9 • Published 4 years ago

jodel-api v2.1.9

Weekly downloads
7
License
GPL-3.0
Repository
github
Last release
4 years ago

node-jodel-api Build Status npm version Dependency Status License

Node.js Jodel API, written in TypeScript

Using the Library

npm install -S jodel-api

jodel-api comes with its own type definitions, no additional type references required.

import { JodelClient } from "jodel-api";

const config = null; // See Keys.md
async function main() {
    const client = new JodelClient(config);
    await client.login({
        city: "",
        country: "DE",
        locAccuracy: 10,
        locCoordinates: {
            lat: 123,
            lng: 456
        }
    });
    console.log("Logged in!");
    console.log("Token: " + client.accessToken);
    // the token can be passed to JodelClient#loginWithToken to use the same token to login back again.

    const res = await client.getKarma();
    console.log("Karma: " + res.karma);
}
main();

jodel-api uses node-fetch which is similar to the Fetch API of most browsers and therefore should be easy to rewrite.

2.1.9

4 years ago

2.1.8

4 years ago

2.1.7

4 years ago

2.1.6

5 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago