具有 API 键的活动监视器 Post
Campaign Monitor Post with API Key
我是新手,所以我想做的是 post 一个 Ajax 活动监视器,以将新订阅者添加到我的列表中。这里的问题是我已经为这个实例使用 Campaign Monitors documentation. However I get a 401 error on the response regarding that the request was not authenticated. I'm just wondering how would I use the API Key 执行了正确的程序。
在JSON我路过:
{ "Email Address": "test@test.com", "Name": "Test" }
我通过 C# 传递这个
using (var client = new HttpClient())
{
var response = await client.PostAsync("https://api.createsend.com/api/v3.1/subscribers/LISTID.json", new StringContent(senderInfo, Encoding.UTF8, "application/json"));
}
我要经过这里吗?
似乎我错过了这个回复header
我是新手,所以我想做的是 post 一个 Ajax 活动监视器,以将新订阅者添加到我的列表中。这里的问题是我已经为这个实例使用 Campaign Monitors documentation. However I get a 401 error on the response regarding that the request was not authenticated. I'm just wondering how would I use the API Key 执行了正确的程序。
在JSON我路过:
{ "Email Address": "test@test.com", "Name": "Test" }
我通过 C# 传递这个
using (var client = new HttpClient())
{
var response = await client.PostAsync("https://api.createsend.com/api/v3.1/subscribers/LISTID.json", new StringContent(senderInfo, Encoding.UTF8, "application/json"));
}
我要经过这里吗?
似乎我错过了这个回复header