Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@itarius-ug/bipro-box-api-client

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itarius-ug/bipro-box-api-client

A TypeScript wrapper for the BiPRO Box API

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

BiPRO Box API Client

Installation

pnpm i @itarius-ug/bipro-box-api-client

Example Usage

import { ApiStatus, Bipro } from "@itarius-ug/bipro-box-api-client";

const bipro = new Bipro({
  token: "<my-api-token>",
});

(async () => {
  try {
    // fetch all available documents (postbox_api_status = 0)
    const response = await bipro.postbox().all();

    for (const postbox of response.postbox) {
      // fetch single document by id
      const { postboxData } = await bipro.postbox().get(postbox.postbox_id);

      console.log(postboxData);

      // mark document as processed (postbox_api_status = 1)
      await bipro
        .postbox()
        .update(postbox.postbox_id, { apiStatus: ApiStatus.Processed });
    }
  } catch (error: unknown) {
    console.error((error as Error).message);
  }
})();

Credits

This project exists thanks to all the people who contribute.

License

CC-BY-ND-4.0 © Itarius UG

Keywords

FAQs

Package last updated on 08 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc