This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1) Set your API key | |
string api_key = "YOUR API KEY"; | |
// Let's create a request | |
string url = "https://api.sendwithus.com/api/v1_0/send"; | |
var httpWebRequest = (HttpWebRequest)WebRequest.Create(url); | |
httpWebRequest.ContentType = "text/json"; | |
httpWebRequest.Method = "POST"; | |
// set headers with api key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"totaltransactions": 5, | |
"newcustomers": 1, | |
"customers": [ | |
"doomsday": { | |
"transactionsthisweek": 1, | |
"customerID": "doomsday", | |
"previoustransactions": 2 | |
}, | |
"bane": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"totaltransactions": 5, | |
"newcustomers": 1, | |
"customers": [ | |
"doomsday": { | |
"transactionsthisweek": 1, | |
"customerID": "doomsday", | |
"previoustransactions": 2 | |
}, | |
"bane": { |
OlderNewer