sendgrid / sendgrid-ruby

The Official Twilio SendGrid Led, Community Driven Ruby API Library
https://sendgrid.com
MIT License
625 stars 322 forks source link

Error in ruby documentation for associating authenticated domains with a subuser #502

Open reedperkins opened 2 months ago

reedperkins commented 2 months ago

I noticed an error in the ruby example for associating an authenticated domain with a subuser.

Currently, line 10 reads:

response = sg.client.whitelabel.domains._(domain_id).subuser:add.post(request_body: data)

The colon in subuser:add is invalid Ruby syntax. Really it should be:

response = sg.client.whitelabel.domains._(domain_id)._("subuser:add").post(request_body: data)

I opened a ticket with support and suggested the correction, and they said to create an issue here. I would be willing to create a PR for the fix, but I can't find where this example comes from in the repo.