All Projects → nikeee → node-jodel-api

nikeee / node-jodel-api

Licence: GPL-3.0 License
Node.js Jodel API

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to node-jodel-api

JodelXposed
Providing additional features for Jodel via the Xposed Framework
Stars: ✭ 29 (-6.45%)
Mutual labels:  jodel
node-jodel
Access Jodel through JavaScript (may not work anymore)
Stars: ✭ 17 (-45.16%)
Mutual labels:  jodel
JodelAPI
API-Wrapper for the Jodel app in .NET
Stars: ✭ 36 (+16.13%)
Mutual labels:  jodel

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].