HTTP SEND C#

By
 C# Code Example - Sending SMS

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class SMSClient
{
    private static readonly HttpClient client = new HttpClient();

    public static async Task<string> SendSMS(string username, string password, string senderId, string recipient, string message)
    {
        string url = $"https://api.sendmode.com/httppost.aspx?username={username}&password={password}&senderid={senderId}&numto={recipient}&data1={Uri.EscapeDataString(message)}";

        HttpResponseMessage response = await client.GetAsync(url);
        return await response.Content.ReadAsStringAsync();
    }

    public static async Task Main(string[] args)
    {
        string response = await SendSMS("your_username", "your_password", "your_senderid", "recipient_number", "your_message_content");
        Console.WriteLine(response);
    }
}