The code should be easy to add to sendMessage, seems like it's mostly a question of how you want to allow optional parameters. One method is using an ...Option spread, for example: https://github.com/nats-io/go-nats/blob/master/nats.go#L515
gotwilio.SendSMS(from, to, content, "https://..., "...", gotwilio.ContentRetentionDiscard, gotwilio.AddressRetentionObfuscate)
Hi, thanks for maintaining a go client for twilio, it's super helpful! Would it be possible to support the
AddressRetention
andContentRetention
parameters inSendSMS
? Documentation here: https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resourceThe code should be easy to add to
sendMessage
, seems like it's mostly a question of how you want to allow optional parameters. One method is using an...Option
spread, for example: https://github.com/nats-io/go-nats/blob/master/nats.go#L515then these get applied to form values in SendSMS:
the implementation might look like:
happy to submit a PR for this, or discuss other approaches!