-
-
Save dcomartin/d5e117c5d71d01af9608192359b29c8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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