TextFlow 1.2.3

dotnet add package TextFlow --version 1.2.3
NuGet\Install-Package TextFlow -Version 1.2.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TextFlow" Version="1.2.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TextFlow --version 1.2.3
#r "nuget: TextFlow, 1.2.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TextFlow as a Cake Addin
#addin nuget:?package=TextFlow&version=1.2.3

// Install TextFlow as a Cake Tool
#tool nuget:?package=TextFlow&version=1.2.3

Textflow C# client

NuGet

Installation

dotnet add package TextFlow

Sending an SMS

To send an SMS, you have to create an API key using the Textflow dashboard. When you register an account, you automatically get an API key with one free SMS which you can send anywhere.

Just send a message

using TextFlow;

TextFlowClient client = new TextFlowClient("YOUR_API_KEY");
client.SendSMS("+381611231234", "Dummy message text...");

Handle send message request result

var res = await client.SendSMS("+381611231234", "Dummy message text...");
if (res.Ok)
    Console.WriteLine(res.Data.Timestamp);
else
    Console.WriteLine(res.Message);

Example properties of the successfully sent message result

result is an instance of TextFlowSendMessageResult class.

{
    "Ok": true,
    "Status": 200,
    "Message": "Message sent successfully",
    "Data": {
        "To": "+381611231234",
        "Content": "Dummy message text...",
        "CountryCode": "RS",
        "Price": 0.05,
        "Timestamp": 1674759108881
    }
}

Example properties of the unsuccessfully sent message result

result is an instance of TextFlowSendMessageResult class.

{
    "Ok": false,
    "Status": 404,
    "Message": "API key not found"
}

Verifying a phone number

You can also use our service to easily verify a phone number, without storing data about the phones that you are about to verify, because we can do it for you.

Example usage

//User has sent his phone number for verification
var resultSMS = await client.SendVerificationSMS ("+11234567890", SERVICE_NAME, SECONDS);

//Show him the code submission form
//We will handle the verification code ourselves

//The user has submitted the code
var resultCode = await client.VerifyCode("+11234567890", "USER_ENTERED_CODE");
//if `resultCode.Valid` is true, then the phone number is verified. 
Verification options

SERVICE_NAME is what the user will see in the verification message, e. g. "Your verification code for Guest is: CODE"

SECONDS is how many seconds the code is valid. Default is 10 minutes. Maximum is one day.

Getting help

If you need help installing or using the library, please check the FAQ first, and contact us at support@textflow.me if you don't find an answer to your question.

If you've found a bug in the API, package or would like new features added, you are also free to contact us!

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.3 311 2/20/2023
1.2.2 222 2/6/2023
1.2.1 229 2/5/2023
1.2.0 235 2/5/2023
1.1.5 245 1/31/2023
1.1.4 237 1/31/2023
1.1.3 238 1/31/2023
1.1.2 216 1/31/2023
1.1.1 260 1/28/2023
1.1.0 263 1/28/2023
1.0.0 253 1/28/2023