Hookme SDK for Node
A simple way to send webhook request to the server.
Usages
import HookmeClient from '@cubetiq/hookme-sdk';
const sdk = HookmeClient.create({
url: 'hookme_url',
tenantId: 'default',
apiKey: 'api_key',
});
const request = WebhookRequest.builder()
.provider('telegram')
.data({
telegram: {
chat_id: 123,
bot_token: '123',
},
message: 'Hello, world!',
photo: 'https://example.com/photo.jpg',
file: 'https://example.com/file.pdf',
})
.build();
const response = await sdk.post(request);
console.log('Request: ', request);
console.log('Response: ', response);
Issues
- When send error with using file store, the interval will auto send the request again and again (this should be change and should delay the with exponential backoff).
Contributors