Closed emanuelhfarias closed 3 years ago
Two is the one you should use. The other should be removed at some point.
You can simplify things a bit using this library:
data = "{\"email\":\"john.doe@gmial.com\",\"source\":\"signup\"}"
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])
response = sg.client._("validations/email").post(request_body: data)
@childish-sambino wow, thanks. I think this solves my problem. I'm closing this issue.
I'm a bit confused, there are two API docs for Sendgrid V3: one and two
What is the difference? I see in the README that this project follows one, but this API does't have Email Address Validation feature from Pro Plan and docs two has.
I've looked for this feature in ruby SDK but didn't find, so I end up implementing the ugly way:
Is there any plans to support this? or at least some guide so I can integrate this feature in this SDK
Thanks