Using webviewer, im displaying images from a remote server. Where to insert API key in php code

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/"

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 icon24 Taifun.

1 Like

Hopefully, this can help you use the correct blocks:

1 Like