paprika-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

paprika-api

You can use Typescript or just javascript to import the library.

Typescript:

import {PaprikaApi} from 'paprika-api';

Javascript:

let PaprikaApi = require('paprika-api');

Initialize

Use your email and password you use for Paprika Sync

let paprikaApi = new PaprikaApi('email@example.com', 'myPassword');

Use

paprikaApi.recipes().then((recipes) => {
    paprikaApi.recipe(recipes[0].uid).then((recipe) => {
        console.log(recipe);
    });
});

You can see all of the endpoints and examples of what they return in lib/index.ts

/paprika-api/

    Package Sidebar

    Install

    npm i paprika-api

    Weekly Downloads

    4

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    43.5 kB

    Total Files

    10

    Last publish

    Collaborators

    • joshstrange