Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created March 11, 2025 16:19
Show Gist options
  • Select an option

  • Save dcomartin/d5e117c5d71d01af9608192359b29c8b to your computer and use it in GitHub Desktop.

Select an option

Save dcomartin/d5e117c5d71d01af9608192359b29c8b to your computer and use it in GitHub Desktop.
public class SmsApi : ISmsService
{
private readonly SMSFactory _smsFactory;
public SmsApi()
{
_smsFactory = new SMSFactory(new ClientOAuth("token"));
}
public async Task Send(string from, string to, string body)
{
await _smsFactory
.ActionSend()
.SetTo(to)
.SetText(body)
.ExecuteAsync();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment