2.0.4 • Published 3 years ago

smartling-webhooks v2.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

smartling-webhooks

npm npm

Library for verifying signed Smartling webhooks

Installation

npm i smartling-webhooks

Use

isAuthenticGetRequest() returns a boolean indicating Smartling webhook GET callback authenticity

/**
 * @param {string} callbackUrl - callback url with query parameters
 * @param {string} headerSignature - value of X-Smartling-Signature header
 * @param {string} SECRET_KEY - signed request secretKey
 */

isAuthenticPostRequest() returns a boolean indicating Smartling webhook POST body authenticity

/**
 * @param {object} postBody - POST request body
 * @param {string} headerSignature - value of X-Smartling-Signature header
 * @param {string} SECRET_KEY - signed request secretKey
 */

Documentation

https://help.smartling.com/hc/en-us/articles/360007829194-Callbacks-and-Webhooks

2.0.3

3 years ago

2.0.4

3 years ago

2.0.2

3 years ago

1.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago