I discovered that I was using the wrong key/secret when trying to send emails, but the error I received was NullReferenceException, which took a while to figure out (since the result gets an empty Content field in this case, it gets deserialized to null).
So I added a check to SendMessage(RestRequest request) to detect HTTP 401's and add an explanation.
Happy to change this if you think there's a better way of informing users of invalid credentials.
Hi,
Thanks for the library, it's been a great help :)
I discovered that I was using the wrong key/secret when trying to send emails, but the error I received was NullReferenceException, which took a while to figure out (since the result gets an empty Content field in this case, it gets deserialized to null).
So I added a check to SendMessage(RestRequest request) to detect HTTP 401's and add an explanation.
Happy to change this if you think there's a better way of informing users of invalid credentials.
Cheers, Mat