Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jodel-api

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jodel-api

Node.js Jodel API

  • 2.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 29 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc