A while back, I needed to integrate SMS into a .NET project. Giant SMS had a REST API, but no official .NET client. The only existing library was a PHP one from 6–7 years ago, and it only covered two methods: send and getBalance.

So I built my own. It now has nearly 2,000 downloads on NuGet. Here's exactly how I did it.

The Problem

Wiring up raw HTTP calls to the Giant SMS API in every project gets repetitive fast:

Manually setting Authorization headers