Forum Academy Marketplace Showcase Pricing Features

API Connector issue

Hi there,

I have the following call running perfectly fine on Postman but impossible to set it up on Bubble (I tried multiple ways to do it but sadly it didn’t work).

Do you have any idea how is it possible?

Here is the code generated by Postman :

POST /api/utils/phonenumber.json HTTP/1.1
Accept: /
Accept-Encoding: gzip, deflate, br
Accept-Language: fr,en-US;q=0.8,en;q=0.6,es;q=0.4
Connection: keep-alive
Content-Length: 89
Content-Type: application/x-www-form-urlencoded
Host: api.leboncoin.fr
Origin: https://www.leboncoin.fr
Referer: https://www.leboncoin.fr/motos/1049181326.htm?ca=12_s
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
Cache-Control: no-cache
Postman-Token: d2708747-7910-57f0-d7ae-0061beb80648

list_id=1049181326&app_id=leboncoin_web_utils&key=54bb0281238b45a03f0ee695f73e704f&text=1

Best,

Nicolas

Can you share what you’ve tried in the editor? otherwise no one can really help.

1 Like

Well, I think I found the issue. I need to give a stringified body to the API.(application/x-www-form-urlencoded)

Is there a way to transform the json body to a string when setting up the call or giving the connector directly a string instead of a json?

Thanks!

Not currently.