Skip to content

Releases: MoceanAPI/mocean-sdk-dotnet

2.1.0

14 Nov 02:22
998e59b
Compare
Choose a tag to compare

Example Usage:

using Mocean.Voice;
using Mocean.Voice.Mapper;

var mcBuilder = (new McBuilder())
    .add(Mc.say("for english please press 1"))
    .add(Mc.collect("https://test.com/collect"))
    .add(Mc.sleep(2000))
    .add(Mc.bridge("60123456789"))
    .add(Mc.play("http://test.com/play"));

mocean.Voice.Call(new VoiceRequest
{
    mocean_to = "60123456789",
    mocean_command = mcBuilder
});

Hangup Example:

mocean.Voice.Hangup("xxx-xxx-xxx-xxx"); //call-uuid

Recording Example:

var recording = mocean.Voice.Recording("xxx-xxx-xxx-xxx"); //call-uuid

//save to file
using (FileStream fs = new FileStream(recording.Filename, FileMode.OpenOrCreate))
{
    using (BinaryWriter writer = new BinaryWriter(fs))
    {
        writer.Write(recording.RecordingBuffer);
    }
}

2.0.0

18 Jun 03:15
Compare
Choose a tag to compare
  • Credentials is now being inject through client
  • None zeros status code is now being throw as MoceanErrorException
  • Add support for .NET Core
  • Response is now being parsed as object
  • Number Lookup Module
client.NumberLookup.Inquiry(new Mocean.NumberLookup.NumberLookupRequest
{
    mocean_to = "60123456789"
});
  • OTP Charge Per Attempt
client.SendCode
     .SendAs(Mocean.Verify.Channel.Sms) // add this method
     .Send(new Mocean.Verify.SendCodeRequest
     {
            mocean_brand = "BRAND_NAME",
            mocean_to = "60123456789"
     });