You can use Typescript or just javascript to import the library.
Typescript:
import {PaprikaApi} from 'paprika-api';
Javascript:
let PaprikaApi = require('paprika-api').PaprikaApi;
Use your email and password you use for Paprika Sync
let paprikaApi = new PaprikaApi('[email protected]', 'myPassword');
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