0
我有下面的代碼,這如何獲取從esendex API記錄
var str = '[email protected]' + ':' + 'login1234';
logInfo(Base64.encode(str));
var str1 = Base64.encode(str); logInfo('str1:'+ str1);
var url = 'https://api.esendex.com/v1.0/messageheaders';
var send1 = 'https://api.esendex.com/v1.0/messageheadersfilterBy=account&filterValue=EX0228368'+ str1 ;
logInfo('send1:'+ send1);
var http = new HttpClientRequest(send1);
http.method = "GET";
http.header["Content-Type"] = "application/json";
http.header["Accept"] = "application/json";
logInfo('After TRY');
http.execute();
var response = http.response;
logInfo(response.code);
我試圖讓已被消息的狀態sent.However我收到錯誤代碼401
對此有何想法?
問候
溼婆
我已經將網址更改爲:http://api.esendex.com/v1.0/messageheaders,我現在得到以下錯誤:\t SSL庫中的錯誤:'錯誤:140770FC:SSL例程:SSL23_GET_SERVER_HELLO:未知協議(代碼336031996)' – shiv