aarthi
September 10, 2024, 6:42am
1
I am developing an app in which several images from remote server are to be displayed in tag .
My remote server is godaddy
After generating API key for authentication purpose, where should I insert my API.
I have two sets of keys, 1. API key, 2. Secret key.
In the documentation the usage is as below
curl -X GET -H "Authorization: sso-key [API_KEY]:[API_SECRET]" "https://api.godaddy.com/v1/domains/available?domain=example.guru"
I tried this with mine (no square brackets)
curl -X GET -H "Authorization: sso-key myAPIKEY:mySecretKEY" "http://www.abc.in/images/"
I get the error msg
Parse error: syntax error, unexpected identifier "GET" in C:\xampp\htdocs\idx.php on line 6
I tried this with mine (no square brackets)
curl -X GET -H "Authorization: sso-key myAPIKEY:mySecretKEY" "http://www.abc.in/images/"
Taifun
September 10, 2024, 7:02am
2
Is this an App Inventor question? If yes, then
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.
Taifun
Trying to push the limits! Snippets , Tutorials and Extensions from Pura Vida Apps by Taifun.
1 Like
TIMAI2
September 10, 2024, 12:33pm
5
Hopefully, this can help you use the correct blocks:
You can convert cURL command to AppInventor blocks hassle free
Convert curl to blocks by Getaix
Preiview
[image]
How to?
Copy & Paste curl text into the textbox
Hover over generated blocks and click download image
Drag and drop downloaded image to AppInventor workspace
Report bug if found
cURL to blocks by Getaix is inspired from CurlToBlocks by @HritikR .
CurlToBlocks by Getaix is still in beta and would like to know your reviews.
Update 2024-08-11T18:30:00Z (UTC)
Thank you
Jerin Ja…
1 Like