Forums

Connection with Bubble.io

Hi everyone!

I am new here and I am trying to understand how to connect my python script to Bubble.io.

Given that right now I am just trying to understand the connection, let's say I just want to get an input number from the web app, add +1 and then return the number.

Bubble offers an API connector plugin, which first asks for the endpoint where I put https://www.pythonanywhere.com/ with a POST operation given that I want to send the number to pythonanywhere.

Then, there is the header, I put "Authorization" as key and my token as value.

The third selection is the body type and there is a list of options, starting from JSON, form-data and raw.

Lastly, there is a button to initialize the call, which obviously reports an error.

How do I refer to a particular script I wrote here?(mainly I would like help in setting up the connection) Thanks!

You need to create a web app to handle connections from bubble.io.

Hi @guglielmo, were you able to figure how this connection will happen?

Hi everyone! I have a python file that I want to run in the background of my bubble.io app, but I have hard time connecting the two. Is there a chance you could help me with that?

You'd probably have to create a web app for bubble.io to access and then configure bubble to use it. We have a blog post about how to turn a Python script into a web app: https://blog.pythonanywhere.com/169/