Los Angeles, CA

Category: C#

How to send text using c#.net

To send a text programmatically your code needs to make an XHR request to an SMS gateway that will read the text details from your request and then initiate a text to the recipient’s phone number PureText offers a Texting/SMS gateway to which you can make an HTTP GET/POST request with details such as recipient…
Read more

Sample Code – Send Text using C#.Net

using System; using System.Collections.Generic; using System.Net.Http; public class Program { public static void Main() { String URI = “https://api.puretext.us/service/sms/send”; String resultContent; using (var client = new HttpClient()) { var values = new Dictionary < string, string > { // To Number is the number you will be sending the text to { “toNumber”, “+X-XXX-XXX-XXXX” },…
Read more