//Import Libraries
using System.Text;
using System.Net;
using System.Collections.Specialized;
using Newtonsoft.Json;
namespace AwesomeApplication
{
public class NikSmsApiV2Client
{
public async Task<string> DeleteContact(){
string url = "https://niksms.com/api/v2/contact/member/delete";
using (var client = new WebClient())
{
var values = new NameValueCollection();
values["username"] = "YourUserName";
values["password"] = "YourPassword";
values["id"] = contactId;
var response = await client.UploadValues(url, values);
var responseString = Encoding.Default.GetString(response);
return responseString;
}
}
}
}