Skip to content

MonoDepth/Sharp46

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sharp46

Integration with the 46Elks API

Can be used to send messages through the API.

Supports using custom HTTP clients for REST operations if the default is not enough

Usage

Send an SMS

var client = new Sharp46Client(YOUR_API_USER, YOUR_API_PASSWORD);

var smsReq = new SmsRequest()
{
    From = "Sharp46",
    To = "+46700000000",
    Message = "TestMessage",
    DryRun = true
};

return await client.SendSms(smsReq);

Get outgoing sms list

var client = new Sharp46Client(YOUR_API_USER, YOUR_API_PASSWORD);

var outgoingList = new List<Sms>();

await foreach (var sms in client.GetSmsHistory("2023-09-17T23:59:59.00", null, null))
{
    if (sms.Direction == Sms.SmsDirection.Outgoing)
    {
        outgoingList.Add(sms);
    }
}

return outgoingList;

More examples in the examples folder

Roadmap

  • MMS Support
  • VOIP support
  • ASP.NET extensions to recieve SMS/MMS/Voice

About

Integration with the 46Elks API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages