joshstrange / paprika-api

NodeJS Library to talk to Paprika's backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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@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

About

NodeJS Library to talk to Paprika's backend


Languages

Language:TypeScript 100.0%