Access is invite-only during beta. Once invited, create a key to personalize these examples. Production sending requires a separate review.
Send emails with .NET
Install the .NET SDK from GitHub and call Emails.SendAsync.
Emails.SendAsync posts JSON to https://app.postshiba.com with a Bearer token. Pass teamId for team-scoped routes. GET /users/me does not return a team id.
Installation
Not on NuGet yet. Clone postshiba/postshiba-dotnet and add a project reference to src/PostShiba/PostShiba.csproj. Open pull requests on postshiba/sdks.
Errors and throttling
Failed responses throw ApiException with Error, Field, and Message.
A 429 with error throttled means the cluster hit its hourly throttle or its 24-hour cap. Do not retry that send immediately. Immediate retries hit the same cap.
The client does not delay for you. In a queued job, catch ApiException and check e.Error == "throttled" before sending again.
See Errors.