我是新手,所以我想要做的是將 Ajax 發布到活動監視器,以將新訂閱者添加到我的列表中。這里的問題是我已經使用Campaign Monitors 文檔執行了正確的程序。但是,關于請求未通過身份驗證的響應中出現 401 錯誤。我只是想知道如何為這個實例使用API 密鑰。在 JSON 中,我正在傳遞:{ "Email Address": "[email protected]", "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")); }有什么東西是我要經過這里的嗎?
添加回答
舉報
0/150
提交
取消