Some help. I am able to create a product using the stripe api connector on a connected account but am unable to upload the image.
API Call
Workflow
What should I be doing? Examples screenshots would be appreciated.
Some help. I am able to create a product using the stripe api connector on a connected account but am unable to upload the image.
API Call
Workflow
What should I be doing? Examples screenshots would be appreciated.
According to Stripe documentation, the images field takes image URLs.
A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
Thank you @bonjour_17 for taking the the time. Appreciated.
Using this image url from a right click (I tried also a copy button to get image url: https://d1muf25xaso8hp.cloudfront.net/https%3A%2F%2Fe46c2c57c72071ecc0d73da377ee0859.cdn.bubble.io%2Ff1721193932296x253343438644813660%2Ffloating%2520breakfast.jpeg
It get this error:
Any ideas?
You should use the “make it json safe” operator for this kind of stuff (you can access this in workflows, when you’ll use the API call)
And for the API first initiation call, you can do that manually using any “json url encoder” tool accessible through a web search
As an image is binary file, to upload a binary file using parameter in bubble.io you have to swtich the body type to FORM then add a parameter and it will give you option file on left of private option check it and then you can send binary file.
there are option to add thumb to product using url. if you tell me you actual use case i can help you sir.
tell me what you want to achive, how you are trying to achive and i will help you.
Sir, Strip images is an array of image, and if you want to send a using parameter not json body. you need to put [ ]
and the item number on inside the braket , as array in computer start with 0.
for first image you need images[0]
as key.
for 2ns images[1]
as key.
and so on. below i usethe url you provided with key name as images[0]
and it worked.
thank you. How can you find when something is an array and needs the [0] for the library of stripe calls?
When i was learning the API with #Pronocodr they thought us this, and you can confirm if a parameter is an array or not on documentation.
In the case of Strip its a small text on left of parameter.
and when they say array it mena []
, for object is {}
, a sting is a text, and a decimal is just a number.
hope you know how json work, its very easy sir.
Hi Baloshi,
Where can I learn this?
This is the next one I want to do but I’m not sure where to go.
Thanks as aways for your kind help.
Kind regards,
Rohan
Hey, contact me on WhatsApp app 923152637573 … My internet is not good