sdk-javipopopo
v1.1.0
Published
Our thanks to master javi
Downloads
311
Maintainers
Readme
sdk-javipopopo
About
fetch fast with or without auth token
no dependencies
Our thanks to Master Javi
Installation
npm install sdk-javipopopo
or
yarn add sdk-javipopopo
Usage
import { sdkAuthRequest, MethodsHttp } from "sdk-javipopopo";
// considering use environment variables
// const BASE_URL = process.env.BASE_URL;
const BASE_URL = "https://api.javipopopo.com/api/v1"; //your base url
const urlRequest = "login"; //your url request
const token = "token"; //your auth token
const response: DefaultResponse = await sdkAuthRequest(
urlRequest,
{ method: MethodsHttp.GET, cache: "no-store" },
token,
BASE_URL
);
License
MIT © all rights to Master Javi repository