Run API Call Curl Commands

How do I transform an API call Curl to use in the Bubble Connector API?

curl -s usuarios -H ‘Content-type: application/json’ -d ‘{“call”:“ListarUsuarios”,“app_key”:“38333295000”,“app_secret”:“4cea520a0e2a2ecdc267b75d3424a0ed”,“param”:[{“pagina”:1,“registros_por_pagina”:20}]}’

There’s a function at the bottom “Import call from Curl” in the same box that you have the authentication part and API Name but after the API Call.
You can copy paste your curl and Bubble will try to create the call for you.
-s is the url -h are header and and the -d can be but in Body json of API Connector if you want to manually enter it.

3 Likes

Where is the option for Curl command . Can u tell the exact location with screenshot
Thanks

2 Likes

As Jici mentioned, you can find the "“Import call from Curl” at the bottom

4 Likes

Thank you @tom29 !!!