apyhub / apyhub.js

ApyHub SDK for Node.js is a library for accessing the ApyHub APIs.

Home Page:https://apyhub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alt text

ApyHub for Node.js

npm npm npm bundle size Discord

About

Welcome to the ApyHub SDK for Node.js! This library provides easy access to the ApyHub APIs through a set of simple and powerful functions.

Our underlying philosophy is to not bloat applications, which is why we have made sure to keep the package as minimal as possible. With this SDK, you can easily perform tasks such as file conversion, text and metadata extraction, document and image generation, image processing, and access to data lists and currency conversion. As our platform grows and develops new APIs, we will be adding more functions to this library.

To learn more about ApyHub, visit our website at apyhub.com or join our Discord server at discord.com/invite/apyhub.

API Documentation

Our SDK provides access to the following API categories:

Each of these categories contains multiple functions for interacting with the corresponding API. For more examples and detailed API documentation, see the links above.

Installation

To use this library, you will need to have Node.js and npm installed on your machine. Then, you can install the ApyHub SDK by running the following command:

npm install apyhub

Usage

To use the library, you will need to initialize it with your ApyHub API token or Basic Authorization.

Token

import { initApyhub } from "apyhub";

initApyhub("YOUR_APY_TOKEN");

Basic Authorization

import { initApyhub } from "apyhub";

initApyhub({
  username: "YOUR_AUTH_USERNAME",
  password: "YOUR_AUTH_PASSWORD",
});

Optional parameters

The initApyhub function can also accept an optional options object with the following parameters:

  • rateLimit: The rate limit for the API client (valid options are integers from 1 to 5, with a default value of 1).
  • debug: A boolean flag to enable debugging output (default: false).
import { initApyhub } from "apyhub";

initApyhub("YOUR_APY_TOKEN", {
  rateLimit: 1,
  debug: true,
});

Example

Once the library is initialized, you can import and use the various functions and methods provided by the library. For example, to access the data list of countries, you can do the following:

import { data } from "apyhub";

const countries = await data.countries();

For more examples, see the API documentation.

Contributing

We welcome contributions to this project. If you have an idea for a new feature or improvement, please open an issue to discuss it. If you'd like to contribute code, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Make your changes and commit them.
  4. Push your branch to your fork on GitHub.
  5. Open a pull request from your branch to the main branch of this repository.

About

ApyHub SDK for Node.js is a library for accessing the ApyHub APIs.

https://apyhub.com

License:MIT License


Languages

Language:TypeScript 99.9%Language:Shell 0.1%