ExTwilioWebhook.HashHelpers (ex_twilio_webhook v0.0.2)

This module contains all functions used to validate Twilio webhook data encoded as JSON or application/x-www-form-urlencoded.

Link to this section Summary

Link to this section Functions

Link to this function

get_expected_twilio_signature(auth_token, url, params)

Link to this function

get_sha_hash_from_url(url)

Link to this function

hmac_sha1_base64(key, data)

Link to this function

parse_and_sort_urlencoded_body(body)

@spec parse_and_sort_urlencoded_body(body :: binary()) :: [binary()]
Link to this function

remove_port(url)

Link to this function

validate_json_body(body, expected_signature)

Link to this function

validate_request_with_body(auth_token, signature, url, body)

Link to this function

validate_url(auth_token, signature, url, params \\ [])