@kevin.eu/kevin-cli
v1.0.8
Published
Kevin CLI is a command-line interface that allows you to easily interact with webhooks. You can send signed webhooks to an endpoint with either a specified payload or a randomly generated one.
Downloads
1
Keywords
Readme
Kevin CLI
Kevin CLI is a command-line interface that allows you to easily interact with webhooks. You can send signed webhooks to an endpoint with either a specified payload or a randomly generated one. We would appreciate any feedback or suggestions on how we can further enhance this tool to bring added value to your projects.
To install the dependencies, run the following command:
npm install
Usage
Send a webhook
To test your webhook flow without exposing your listener, we recommend using a tool like webhook.site. To send a webhook, run the following command and specify your endpoint secret as a parameter:
npx kevin send https://example.com --secret=mysecret
Replace https://example.com with the URL of your webhook endpoint, mysecret with your endpoint secret. The payload will be picked up randomly.
npx kevin send https://webhook.site/70bcc8d6-e68b-4913-b60a-ed102b9f9a28 --secret=576768879797hfjjfjf
You can also use a custom payload by replacing the payload argument with a JSON-formatted string. For example:
npx kevin send https://webhook.site/70bcc8d6-e68b-4913-b60a-ed102b9f9a28 --secret=576768879797hfjjfjf '{"id":"asd123dfgh","bankStatus":"ACSP","statusGroup":"STRD","type":"payment"}'
Who do I talk to?
If you have any questions or issues, please reach out to the developer for assistance.