Skip to content

Commit ccb5b32

Browse files
authored
Merge pull request #5 from dysosmus/TEC-1257
Support for datacoding parameter with the Verify endpoint
2 parents b45510d + ea52ffb commit ccb5b32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

otp_message.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type OtpParams struct {
2323
Language string
2424
Voice string
2525
Template string
26+
DataCoding string
2627
}
2728

2829
// paramsForOtp converts the specified OtpParams struct to a
@@ -47,6 +48,10 @@ func paramsForOtp(params *OtpParams) *url.Values {
4748
urlParams.Set("template", params.Template)
4849
}
4950

51+
if params.DataCoding != "" {
52+
urlParams.Set("datacoding", params.DataCoding)
53+
}
54+
5055
// Specific params for voice messages
5156
if params.Language != "" {
5257
urlParams.Set("language", params.Language)

0 commit comments

Comments
 (0)