This is a simple wrapper typescript library to get started with Fuze libraries.
For more infromation about supported endpoints please refer our docs
npm run build
- First update
src/example.ts
with yourAPI_KEY
andAPI_SECRET
. - Build the code using
npm run build
. - Now run the example
node dist/example.js
.
import FuzeClient from "./index";
const fuzeClient = new FuzeClient({
apiKey: "YOUR_API_KEY",
apiSecret: "YOUR_API_SECRET",
baseUrl: "https://dev.api.fuze.finance",
});
const main = async () => {
const result = await fuzeClient.request(
"/api/v1/org",
FuzeClient.HTTP_METHOD.GET
);
console.log(result);
};
main();