@tanglemesh/api-client.js
Version:
A simple lightweight api client for using the tangleMesh:api with authentification.
19 lines (16 loc) • 509 B
JavaScript
const { ApiClient } = require ("../index");
(async () => {
//Do request
const apiClient = new ApiClient ({
apiIdentifier: "7DE635ECF529629BA113571D2A288598",
apiSecret: "A4BEF4E7CE564EDD2BD8141F1D6546S567F659DC8F30D9918B2F17C387BD7B60"
});
const withdrawals = await apiClient.get (
"/withdrawals/" + "7458d984-47ea-4ee1-bfbc-e3016a233f35",
{
start: 0,
limit: 5,
}
);
console.log ("My withdrawals:", withdrawals);
})();