Skip to content

Commit cbe77e1

Browse files
author
Sam Wierema
committed
Ran go fmt on the new changes, and made some punctuation changes for @prep
1 parent a625c93 commit cbe77e1

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (c *Client) NewVoiceMessage(recipients []string, body string, params *Voice
227227
return message, nil
228228
}
229229

230-
// OtpGenerate generates a new One-Time-Password for one recipient
230+
// OtpGenerate generates a new One-Time-Password for one recipient.
231231
func (c *Client) OtpGenerate(recipient string, params *OtpParams) (*OtpMessage, error) {
232232
urlParams := paramsForOtp(params)
233233
urlParams.Set("recipient", recipient)
@@ -244,7 +244,7 @@ func (c *Client) OtpGenerate(recipient string, params *OtpParams) (*OtpMessage,
244244
return message, nil
245245
}
246246

247-
// OtpVerify verifies the token that was generated with OtpGenerate
247+
// OtpVerify verifies the token that was generated with OtpGenerate.
248248
func (c *Client) OtpVerify(recipient string, token string, params *OtpParams) (*OtpMessage, error) {
249249
urlParams := paramsForOtp(params)
250250
urlParams.Set("recipient", recipient)

otp_message.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ import (
66
)
77

88
type OtpMessage struct {
9-
Id string
10-
Recipient string
11-
Reference string
12-
Status string
13-
Href map[string]string `json:"href"`
14-
CreatedDatetime *time.Time
15-
ValidUntilDatetime *time.Time
16-
Errors []Error
9+
Id string
10+
Recipient string
11+
Reference string
12+
Status string
13+
Href map[string]string `json:"href"`
14+
CreatedDatetime *time.Time
15+
ValidUntilDatetime *time.Time
16+
Errors []Error
1717
}
1818

1919
type OtpParams struct {
20-
Reference string
21-
Originator string
22-
Type string
23-
Language string
24-
Voice string
25-
Template string
20+
Reference string
21+
Originator string
22+
Type string
23+
Language string
24+
Voice string
25+
Template string
2626
}
2727

2828
// paramsForOtp converts the specified OtpParams struct to a

0 commit comments

Comments
 (0)