DISCLAIMER: As of April 28th 2023, the Poparazzi platform has been discontinued. The project has been archived.
Installing using NPM
npm install poparazzi-private-api
Installing using Yarn
yarn add poparazzi-private-api
Take a look at examples for using the package here.
Below is the simplest and fastest way to authenticate to Poparazzi using the package.
import * as Poparazzi from 'poparazzi-private-api';
;(async () => {
// Run the built-in terminal login prompt
const client = new Poparazzi.Client({ interactive_login: true });
client.set_event({ login_success: async () => {
console.log(`Logged into Poparazzi!`);
await client.end_session(); // Logout from Poparazzi
}});
client.set_event({ logout: async () => {
console.log("Logged out of Poparazzi.");
}});
})();
For more detailed information on all the package features, please see the package docs.
Every single enum, interface, class object and methods are fully documented there.
If you would like to implement a new feature or fix a bug, feel free to create a pull request!
API and SDK documentation also make very useful contributions, so if you are good at - please do so!
Before starting on your own contribution, please read the contributor guidelines!
Released under the Apache-2.0 license. Copyright (c) 2022 Max Rodriguez