πCustom request
const { api } = await vidalClient({
auth: {
clientId: '*****',
clientSecret: '*************',
}
});Usage
You can use custom method like this
import { vidalClient } from '@monordo/json-vidal-client';
(async () => {
const { client, api, routes } = await vidalClient({
auth: {
clientId: '************',
clientSecret: '********************',
}
});
const result = await api.custom({
method: 'GET',
url: "package/37939" // or you can use : routes.package(37939),
})
console.log(result);
})();Last updated