This wrapper helps you to easily connect to the SendCloud API.
You can check the documentation of sendcloud at this url.
npm install @tapni/sendcloud
const SendCloud = require('@aquilacms/sendcloud').default;
const sendCloud = new SendCloud({
api_key: '<YOUR_API_KEY>',
api_secret: '<YOUR_API_SECRET>'
})
try {
const result = await sendCloud.parcels.getParcels()
console.log(result)
} catch (err) {
console.error(err)
}