From ea52ffb068857d42adaf04057495bfc30e5d4b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Mattrat?= Date: Fri, 24 Jun 2016 14:28:02 +0200 Subject: [PATCH] Support for datacoding parameter with the Verify endpoint --- otp_message.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/otp_message.go b/otp_message.go index 3038b3a..a2d0320 100644 --- a/otp_message.go +++ b/otp_message.go @@ -23,6 +23,7 @@ type OtpParams struct { Language string Voice string Template string + DataCoding string } // paramsForOtp converts the specified OtpParams struct to a @@ -47,6 +48,10 @@ func paramsForOtp(params *OtpParams) *url.Values { urlParams.Set("template", params.Template) } + if params.DataCoding != "" { + urlParams.Set("datacoding", params.DataCoding) + } + // Specific params for voice messages if params.Language != "" { urlParams.Set("language", params.Language)