Jericho / StrongGrid

Strongly typed library for the entire SendGrid v3 API, including webhooks
182 stars 38 forks source link

Add support for Subuser Reputations #301

Closed Taigus closed 4 years ago

Taigus commented 4 years ago

In order to monitor my subusers, I'd like support for /subusers/reputations Reputation is already available through the Account on the User resource, but access is restricted.

Taigus commented 4 years ago

Please see #302

Jericho commented 4 years ago

Is this new API functionality that Sendgrid recently added? I read their release notes regularly and I did not see a mention about it.

Anyway, I completely agree that we need to add this feature in StrongGrid.

Taigus commented 4 years ago

I don't know when it was added as I don't have much history with their API, but the manual solution I inherited referenced the endpoint as early as November 2018. The documentation seemed a little sparse, and I wasn't originally very confident about the ability to get more than one subuser's data at a time. Following the pattern for the rest of the API worked in my tests, so I included it. It might be worth additional testing to verify the 10 item limit for "usernames"