Hi there! I'm a newbie in using APIs with file post so i will use your help. I'm creating an app for educational purposes and i want to incorporate the following curl code:
curl -X POST 'https://api.sightengine.com/1.0/check.json'
-F 'media=@/path/to/image.jpg'
-F 'models=genai'
-F 'api_user={api_user}'
-F 'api_secret={api_secret}'
I tried the ready made solutions for converting curl to blocks but with no result. I tried using dictionaries, lists but i still get a "failure" feedback. Can anyone help me please?
Thank you for your quick response. Unfortunately i don't want to use extensions but only the default appinventor's blocks. I created the following endpoint url https://api.sightengine.com/1.0/check.json&models=genai&api_user=.....&api_secret=.... and the i sent the file path with the Web1.PostFile. Firstly sth I'm doing wrong as i didn't find a way to send both url and file. I didn't use any headers.
It said "upload the image to somewhere online"
This could also be for example your Google Drive, you later only have to provide a public url to the uploaded file