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