sendgrid-nodejs
sendgrid-nodejs copied to clipboard
Issue: what is "customArgs"? Does it correspond to "unique_args" in the API?
I want to set unique arguments using this library. However, I can't see any way to do that. I can see a field called customArgs, but it's unclear whether this is the same thing. Can you point me to documentation on field?
I found through testing that setting customArgs: { foo: "bar"} results in the Email Activity dashboard showing an email with "Unique Args: foo: bar".
So it appears to just be badly named. I suggest that the customArgs field in this library is renamed to uniqueArgs, to correspond with the dashboard and the documentation.
(That said, "unique args" is a bizarre name, and should be called "tags" or "private metadata". But the most important thing is consistency - just call it one thing!)