Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

An open source documentation and implementation of the Poparazzi private Web API. Written in TypeScript.

License

Notifications You must be signed in to change notification settings

maxrdz/poparazzi-private-api

Repository files navigation

Logo is a registered trademark reserved by TTYL Inc. Poparazzi

poparazzi-private-api

An open source implementation of the Poparazzi Web API, written in TypeScript.

DISCLAIMER: As of April 28th 2023, the Poparazzi platform has been discontinued. The project has been archived.


Installation

Installing using NPM

npm install poparazzi-private-api

Installing using Yarn

yarn add poparazzi-private-api

Getting Started

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.");
    }});
})();

Documentation

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.

Contributing

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