Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

332
Visualizações
NetSuite SuiteScript connection via rapidapi

I am having issues using RapidApi within NetSuite. Has anyone done this before?

headersObj = [
    {
        name:"x-rapidapi-host",
        value:"hostishere"
    },
    {
        name:"x-rapidapi-key",
        value:"keyishere"
    }
];

response = https.request({
    method: https.Method.GET,
    url: "MyURLishere",
    headers: headersObj
});

I get the following return:

error 400 message: Invalid API key. Go to https:docs.rapidapi.com/docs/keys for more info.

The API key is correct having tested through postman.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

The header was missing "Accept":"application/json".

headersObj = {
    "Content-Type": "application/json",
     "Accept":"application/json",
     "x-rapidapi-host": "Myhost",
     "x-rapidapi-key": "Mykey",
     "Host": "host"
};
about 4 years ago · Juan Pablo Isaza Relatório

0

If you are making the call from within Netsuite you'd need to use their https library:

define(["N/https"], function(http){
    headersObj = [{ name:"x-rapidapi-host", value:"hostishere" }, { name:"x-rapidapi-key", value:"keyishere" }];
    var resp = http.get({url:'your url', headers:headersObj});
    // do something
});
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda