C# .NET Developer for Code Integration
Budget: ₹1,500 – ₹12,500 INR
Hello
I need a c# .net developer who can add this code to my existing project which is windows web forms asp.net
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace sendSms
{
internal class Program
{
static void Main(string[] args)
{
using (var client = new HttpClient())
{
var endpoint = new Uri("https://msgpserver.com/api/");
var newPost = new Post()
{
mtype = "N",
sender = "....", //
message = "OTP", // Send Messages OR OTP
auth_id = "EB9806B16ED94298BC30C07A5285A1EC", // Your Authentication ID
auth_key = "72B166523A3742E085256A4C10055319", // Your Authentication Key
};
var newPostJson = JsonConvert.SerializeObject(newPost);
var payload = new StringContent(newPostJson, Encoding.UTF8, "application/json");
var result = client.PostAsync(endpoint, payload).Result.Content.ReadAsStringAsync().Result;
}
}
}
}
I need a c# .net developer who can add this code to my existing project which is windows web forms asp.net
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace sendSms
{
internal class Program
{
static void Main(string[] args)
{
using (var client = new HttpClient())
{
var endpoint = new Uri("https://msgpserver.com/api/");
var newPost = new Post()
{
mtype = "N",
sender = "....", //
message = "OTP", // Send Messages OR OTP
auth_id = "EB9806B16ED94298BC30C07A5285A1EC", // Your Authentication ID
auth_key = "72B166523A3742E085256A4C10055319", // Your Authentication Key
};
var newPostJson = JsonConvert.SerializeObject(newPost);
var payload = new StringContent(newPostJson, Encoding.UTF8, "application/json");
var result = client.PostAsync(endpoint, payload).Result.Content.ReadAsStringAsync().Result;
}
}
}
}