Hi folks. Hoping someone here can help. I’m a novice Bubbler with little experience using API’s. That said, I apologize in advance for my ignorance.
I’m working on a simple SMS application that passes data back and forth between Bubble and a Twilio Studio flow. I’m using API Connector (for the initial flow execution) and Studio’s built-in HTTP request widget to pull in dynamic content from my app’s Bubble DB using the workflow API.
The application is basically finished. (Hat tip to @NigelG’s forum guidance for getting me off the ground.) However, I am running into some finicky behavior around JSON formatting. I suspect this is because I am using dynamic variables to generate my JSON on both ends — using dynamic content in the response from my Bubble API workflows and flow variables in my Studio calls to Bubble. It seems as though I’m getting errors when this content contains special characters.
I’ve attached screenshots of my setup. Again, I suspect I might need to use a server script or find & replace to escape special characters before initiating my calls. However, I’m hoping someone can confirm this is the problem and maybe give me some best practices for handling API’s and dynamic content.
@mishav do you think your Toolbox plugin might be of help in this situation? It seems powerful, but I’m not fluent enough in JS to know what to do with it just yet.
Thank you!