#How to add axios library?
1 messages · Page 1 of 1 (latest)
Hey There,
We've registered your query, and our team will get back to you soon.
Regards,
Pranav
Hello!
Not all libraries are supported on Appsmith due to platform limitations.
Can you tell us what your use case is for needing these libraries?
I need a function that takes data according to a parameter.
I need to get the product description which is in another api. In the main api comes the product ID, in the secondary api comes the product description.
I'm trying with fetch, but didn't work. Maybe this port? 8079? http://pmafranio.cetecpublica.com.br:8079/Transparencia/VersaoJson/Despesas/?Listagem=DetalhesEmpenhoPorNumeroEmpenho&intNumeroEmpenho=348&strTipoEmpenho=OR&Empresa=2&bolMostrarFornecedor=True
Your sample code, works fine:
const questions = await fetch("https://opentdb.com/api.php?amount=10") return questions.json()
another url didnt work too and have a explicit port. http://transparencia.cabrobo.pe.gov.br:5656/Transparencia/VersaoJson/Despesas/?Listagem=DetalhesEmpenhoPorNumeroEmpenho&intNumeroEmpenho=151&strTipoEmpenho=OR&Empresa=2&bolMostrarFornecedor=True
Maybe the httpS?
Have you tried using our REST API integration instead? You can read more about
this
here.
yes, but how can i send a dynamic parameter for the url?
Can you elaborate on your use case for a dynamic URL? Our query editor allows
sending header, body, and query params.
I need to call the data with a parameter:
http://pmafranio.cetecpublica.com.br:8079/Transparencia/VersaoJson/Despesas/?Listagem=DetalhesEmpenhoPorNumeroEmpenho&intNumeroEmpenho=${productID}&strTipoEmpenho=OR&Empresa=2&bolMostrarFornecedor=True