Curl API - How to call?

Status: Closed · Asked by pedroivoree on · 0 views

pedroivoree — Question ·

Hi,

I have to make a curl POST for an api, but how can I do this with the API connector? I tried to convert to javascript and use the code function, but it didn't worked.

Thanks

Best,
Pedro

Pabblymember11 — Reply ·

Hey @pedroivoree

You can use the API by the Pabbly action step to request the API call.

youtube.com/watch?v=bmf4och_kTk

pedroivoree — Reply ·

In the video, there's no example of a curl request. The one I need to do is ( this image is how I setup the node, both with and without the post after the Curl https://postimg.cc/30KFjjxy )

curl --request POST \
--url https://bigboost.bigdatacorp.com.br/companies \
--header 'AccessToken: XXXXX' \
--header 'TokenId: XXXXX' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"q": "doc{doc{40.633.348/0001–30}"
"Datasets": "company_evolution"
}

Best,
Pedro

Pabblymember11 — Reply ·

You do not have to pass the "curl post" in the request URL endpoint.

Back to all forum threads · Log in to reply