@ip-pilot/axios-fetcher

1.0.2 • Public • Published

axios-fetcher

Gettin started

  1. Install the package
npm i axios-fetcher
  1. How to use it in your file (ex: paste it in an index.js file and then run node index.js):
const { axiosFetcher } = require('axios-fetcher');

const asyncFunction = async () => {
  const yourToken = '........';
  const requestOptions = {
    url: 'your url',
    method: 'POST',
    headers: { 'content-type': 'application/json', Authorization: `Bearer ${yourToken}` },
    data: raw,
    redirect: 'follow',
  };

  const response = await axiosFetcher(requestOptions);
};

asyncFunction();

Built with

Company

IP Pilot:

Readme

Keywords

Package Sidebar

Install

npm i @ip-pilot/axios-fetcher

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

1.59 kB

Total Files

3

Last publish

Collaborators

  • ippilot
  • luka.popovic