Skip to content

jineshu/csharp-bandwidth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csharp-bandwidth

Build status

.Net library for Catapult API

Usage

Using REST client

  using (var client = new Client(Config.UserId, Config.ApiToken, Config.Secret))
  {
      var applications = await client.Applications.GetAll(); //Get all applications of user

      //making call
      var callId = await client.Calls.Create(new Call
      {
          From = "+1-202-555-0149",
          To = "+1-202-555-0148"
      });

      //sending sms
      var smsId = await client.Messages.Send(new Message
      {
          From = "+1-202-555-0149",
          To = "+1-202-555-0148",
          Text = "Hello"
      });
  }

See Bandwidth Catapult Api Docs for more details

Parsing callback events

//in request handler
var event = Bandwidth.Net.Events.Event.ParseRequestBody(requestBody);

About

.NET SDK for use with the Catapult API

Resources

License

Stars

Watchers

Forks

Packages

No packages published