-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
documentation is poor / lacking #79
Comments
Hello @wardbt, I apologize for the typo in the mail helper example (correcting now), it should be: puts response.body
puts response.headers Thank you for taking the time to provide your feedback to us, we greatly appreciate it! First, please note that the library does not currently completely reflect the fantastic jump in functionality and usability from v2 to v3 in the library (details here: https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/how_to_migrate_from_v2_to_v3_mail_send.html). We took some steps back with this library to decouple it from the v2 mail send endpoint and provide support for all of the v3 Web API endpoints. This is the first of many iterations and your feedback helps us prioritize what to iterate on next, so thanks again! We don't want to iterate without your feedback and we will continue to explore new methods to engage with you all. We view our libraries as community driven and SendGrid led and shortly we will be publishing the current roadmap for this library here on GitHub where we will clarify the direction we want to go in hopes that people like you will continue to provide feedback. Thanks again! |
How does one participate in this community that seems to be making the gem I can't believe what you've done with attachments... Speaking of that, Fridays code: attach_content = Base64.encode64(File.open("some_file.pdf").read) then this morning, got error 400's saying that the content must be attach_content = Base64.strict_encode64(File.open("some_file.pdf").read) It's going to be very hard to trust this new API when it just breaks Postmark and AmazonSES are just a few clicks away and from experience, On Fri, Jul 22, 2016 at 1:55 PM, Elmer Thomas notifications@github.com
|
Thank you for taking the time to provide additional feedback. Creating a helper for the attachment functionality in on the roadmap, thanks for the verification. However, there should not have been a breaking change over the weekend. Generally, changes are announced in our CHANGELOG and in the releases section. I'm guessing our API does not like the newlines that This is valuable information to know when implementing that attachment helper, thanks again! Also, I've reached out to our team to confirm. Given that this is the first iteration of this new library, we expect a great deal of feedback on how we can improve. And indeed, we have received some excellent feedback (including yours), and we are very grateful! Personally, I am very excited about the next few iterations and we will do our best to make you a happy SendGrid customer. |
OK, so my theory was correct. When you use Thanks again for letting us know! If you don't mind, we like to reward these types of contributions with some swag. If you email us at dx@sendgrid.com with your mailing address and T-shirt size we would love to hook you up. |
Missing Dev Dependencies + rubocop sendgrid#79
Issue Summary
I received the "we have a new version of the api" email and decided to upgrade. Certainly feels more like a downgrade to me. Before, sending email with the sendgrid-ruby gem was simple. Now it is not. I don't see how these changes benefit your customers (i.e. programmers trying to leverage sendgrid), it looks like you just wanted to refactor the code and then release a version that breaks everybody and then you provide poor documentation. You may like the code more this way but your customers (i.e. me) do not. Why don't you get your ego out of the way and stop writing code that serves you and write code that serves us. Regarding documentation, in your kitchen_sink example:
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'], host: 'https://api.sendgrid.com')
response = sg.client.mail._('send').post(request_body: mail.to_json)
puts response.status_code
puts response.response_body
puts response.response_headers
I followed this and get:
undefined method `response_body' for #SendGrid::Response:0x005602531ef810
muppets...
Steps to Reproduce
Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? What do you expect to happen instead?
Technical details:
The text was updated successfully, but these errors were encountered: