Issue to setup curl request using bubble API Connector

Hello everyone,

I would like to integrate my app with one service using their API.
I got curl example from them how to work with their API and it works well using my terminal

curl --data “email=someEmail@email.com&pass=someStrongPassword” -X POST “https://api.i-test.net/?t=1011

But when I try to create this request using bubble API Connector I’m getting Authentication Failure

Could you please help me to understand what I setup wrong using API Connector with this Curl request?

Thanks

1 Like

Try this:

Fill in the details for the new API call:
Call Name: cURL Call
Data Type: XML or JSON (it appears the return is in XML format)
Use as: Data
API URL:https://api.i-test.net/?t=1011

Select “POST”
In the Body Type, select Form-data
In the parameters section, instead of entering “data” as the key and the other values as the value, enter the individual parameters:

‘Add parameter’
Set the Key as email and the Value as someEmail@email.com
‘Add parameter’ again
Set the Key as pass and the Value as someStrongPassword

1 Like

Hi. Thank you. I tried and working well now :grinning:

2 Likes