First, read the API documentation carefully
Second, do each step required by the API documentation
Is there an API tester on the API website?
Is it working?
After this:
Third, research the topics on web Component + API
There are many, and each with a solution.
Test them out.
I can upload and download images via the test page!
As shown, I also guess what the body and what the header is.
I just don’t understand (I guess I’m too stupid) how I can put this into blocks. I’ve read a lot (also with App Inventor) and tried a lot -> see above.
What works well:
With createWebApiSession I get the APISID (session ID) -> the connection to the server works!
According to the API test page, I need the APISID for the upload.
Then I have to set: content-type multipart / form-data.
How do I build the header with APISID?
And how about the body?
Do I have to perform authorizeWebApiSession first?
As I said, I read a lot and got very confused as a result
First tried web.post.text, but then switched to Post.File because of this “Upload to Dropbox” lesson. https://puravidaapps.com/dropbox.php
There was the authorization with a token in the header.
Or do you think I should add this to the url sooner?
you one more try - but I’ll give up soon - I’m too stupid?
On the API test page I found out the following information about the browser’s developer tool and tried to use it to build a request in blocks. It should actually work. The upload request doesn’t look complicated. Just don’t understand when do I have to build a list, when to join text, when do I have to use Json? Also attached is the app’s error message.
Thanks for the information. But I would like to save the pictures privately on my own server at home and not use an external provider. I don’t know what will happen to my data.
Picapport is a server to install yourself with API support.