- 嗨,我正在尝试更新 fullContact apiKey
- 我的新密钥是这种格式->
Wa**IuyqQZd****YhUiko**Asdc**POU
- 我的旧密钥是这种格式->
aq******982ad**s
- 我从 Node Js 调用 fullContact APi
阿贾克斯调用:
var url = 'https://api.fullcontact.com/v2/person.json';
var data ={email:'abc@gmail.com',apiKey:'Wa**IuyqQZd****YhUiko**Asdc**POU'};
request({
method: 'GET',
url: url,
useQuerystring: true,
qs: data
},
function(error, response, body) {
//handling response here
if ((error || !response || response.statusCode > 400) && statusCode !== 404) {
console.log('Request to FullContact failed (status `' + statusCode + '`, time `' + time + '`):', data, error, body);
resolve(null);
return;
}
});
- 但是更新新密钥后出现错误
对 FullContact 的请求失败(状态
403
,时间1.467 sec
):{电子邮件:'abc@gmail.com',apiKey:'Wa##IuyqQZdyu##YhUiko##AsdcPOU'} null {“状态”:403,“消息”:“Api密钥包含非十六进制字符或无效" }