Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 776 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 776 Bytes

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').PaprikaApi;

Initialize

Use your email and password you use for Paprika Sync

let paprikaApi = new PaprikaApi('[email protected]', '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