3.0.1 • Published 7 months ago

xfarr-api v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

xfarr-api

Full API Implementation inside NodeJS Module

More info at https://api.xfarr.com/ Get ApiKEY here https://api.xfarr.com/auth/signin

And you can upgrade your apikey to premium or VIP, you can see more details at https://api.xfarr.com/pricing

Installation

npm:

$ npm install xfarr-api

yarn:

$ yarn add xfarr-api

Simple to Use

CommonJs (CJS) syntax

const APIWrapper = require('xfarr-api');

ECMAScript Modules (ESM) syntax

import APIWrapper from 'xfarr-api';

Example

const xfar = new APIWrapper('ApiKEY');

// How to call the API
xfar.[feature].[name](parameter)
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error.message);
  });

// Example of an API call
xfar.stalking.npmjs("xfarr-api")
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error.message);
  });

Thanks To

Lui
Dika ArdiantaLui
PedoJomok

Feedback

If you have any feedback, please reach out to us at xfar.dev@gmail.com