Execute cURL on bubble

Hi guys

I am trying to push notification to ios devices - I have successfully done that through curl from my terminal, but I would like to execute curl script on bubble so that I can push automatically through a workflow. Is there a way to do this??

My scripts are as follow

curl -v -d ‘{“aps”:{“alert”:“hello”,“badge”:42}}’ \

-H "apns-topic: " \

-H “apns-priority: 10” \

–http2 \

–cert \

https://api.push.apple.com/3/device/

Thanks in advance!

API Connector is made for that.

is it possible to elaborate a little bit?
i had a play with the API connector and I couldn’t figure out how to use dynamic data with API connector?

Thanks a lot!

where you able to get this done? I need to do something similar.

@planet.app.contact

I am also curious if this worked out for you? Trying to do something similar with Apple push.

Bump…just wondering, anybody done this, as API connector is not as robust or flexible as cURL imho. Would be nice to just post a curl command and be done with it lol, as an action or as data

Hey @james36,

It is not possible to run a cURL-command from an action or as data (as far as I know), but it is possible to generate an API-call based on a cURL-command (see image below).

In case there are problems getting a API call to work in Bubble, I often create the call in Postman (postman.com) first and after that in Bubble. You can copy paste the cURL-statement from Postman in Bubble:

It will not always include all of the parameters (especially with POST-call if I remember correctly) but it will get you started.

Hope this helps,

Gerbert
MVP Design