GET API connector call - data parameter

Hello Bubblers !

I’m trying to get extra info from a GET API call using API Connector.

With postman, I can setup like this and have additional infos (like "“nbStops”: “26"” see below) :

But in Bubble, when I’m adding the “deliveryStats” as a parameter, I can’t get extra infos like nbStops etc…

Do I miss somethin ?

I think I have done right following the doc Loading...

Hi @Sarah_Esteve :wave:

Copy the cURL from Postman and Paste in Bubble.

You shoul note that Bubble will change your call from GET to POST as it has data in the body.
But the result will be the same.

image

The main problem I can see is that you have a get request with a JSON payload. this is now allowed in Bubble (and normally, a GET request shouldn’t have a body I believe). Do you have API Doc?

yep @Jici the doc is there (I put in in first post but the link has a strange behavior) : https://doc.allmysms.com/api/en/#api-Statistics_and_information-getCampaignInfo

@rpetribu the call with a POST doesn’t work with this service, I tried :confused:

thank you guys for help !

:point_up: Yeah…

@Sarah_Esteve , in PostMan, could ou try to make the GET inserting your parameters in the PARAMS tab instead of in the body/raw?

yes I did, and same that in Bubble, no extra info like this

What I believe is this API expect a json body and Bubble doesn’t have this option for GET (and this is normally correct because GET shouldn’t have a body, only querystring parameters (and this is what Bubble do by the way). This API doesn’t follow main guideline for creating GET endpoint. They should convert it to POST or use url parameters instead.

The only option I think you have is to use a plugin or third party tool… or try to do a request on Bubble ideaboard

2 Likes

ah thanks for the explanation. I pulled a bug report to see if bubble team can do something, unless I 'll contact the service team unless I’ll do with external service like you suggest. Clear like water !!! thank you again !!!

@Jici do you have an idea of an external service I can use to pass the payload ? Make maybe ?

Yes Make is a good option. You can set the API call in make and return the payload to Bubble. Call make using API connector.

yes, I did @Jici

image

but seems it is not working like Postman :confused:

image

In postman the raw content was accepted, I should miss something :confused:

Can you share the input result part with headers and body?
You can always send the request to requestbin.com from postman and make and compare both results.

thanks !

I tried in requestbin and seems the config is different…

I cannot setup application/json in Make like in postman…

I don’t know how to handle this

I tried 3 ones but no worked

and if I put a query string parameter it doesnt appears in the body

This topic was automatically closed after 70 days. New replies are no longer allowed.