UNPKG
revolut
Version:
latest (0.0.2)
0.0.2
An API client for revolut
github.com/feliun/revolut
feliun/revolut
revolut
/
entities
/
webhooks.js
11 lines
(8 loc)
•
283 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
debug =
require
(
'debug'
)(
'revolut:webhooks'
);
module
.
exports
=
(
{ url, request }
) =>
({
// POST https://sandbox-b2b.revolut.com/api/1.0/webhook
setup
:
(
webhook
) =>
{
debug
(
`Setting up webhook:
${webhook}
`
);
return
request.
post
(
`
${url}
/webhook`
, webhook); } });