Is there someone with Java experience that can verify this looks possible?
So I asked Chat GPT how I could access Chat GPT using an API in Glide Apps
It responded with this:
First, you’ll need to sign up for an API key on the OpenAI website.
Once you have your API key, you can use it to make API requests to the GPT-3 endpoint. For example, you can use the following code snippet in Glide app to generate text based on a given prompt:
You can then use the generated text in your Glide app by displaying it in a text field or using it in some other way.
I have no experience with using Java columns. I wondered if there is an expert that can say ‘ok, this could work’! Moreover, could they create a test version and share the results?
Unfortunately, I’m not an expert in Java, so I can’t verify if this is possible. However, I can suggest that you reach out to the Glide community for help. You can find a list of helpful resources here: Glide Community - Creating amazing apps without code.. Good luck!
It’s actually given you some Apps Script code (UrlFetchApp is an Apps Script method), which is a flavour of JavaScript, which is definitely not Java. Java & JavaScript are two very different animals
Anyway, that won’t work as it is in a JavaScript column.
It would however be possible to craft some JavaScript that would work. Not something I’ve attempted to do yet (just one thing on a very long list of things I’d like to play with), but somebody else might have.