Four Js Development Tools Forum

General => General Discussion => Topic started by: Francois G. on September 08, 2021, 10:45:59 am



Title: library for accessing Google Cloud Storage APIs
Post by: Francois G. on September 08, 2021, 10:45:59 am
Hi,

Using Genero BDL 3.10, is there any existing 4GL code that can be used to access Google Cloud Storage APIs?

Should I install the Google C++ client library, write a C adapter library, and then import that in my 4GL code?

Regards,


Title: Re: library for accessing Google Cloud Storage APIs
Post by: Francois G. on September 08, 2021, 10:50:51 am
There is also a Google Java library, which the Genero 4GL might be able to use more readily, without much need for an intermediate adapter library.

Would anybody have any experience with Genero 4GL code that uses C++ / Java libraries?

Regards,


Title: Re: library for accessing Google Cloud Storage APIs
Post by: Sisavanh S. on September 08, 2021, 11:18:03 am
Hi,

I'm not familiar with these "Google Cloud Storage APIs".
From what I read:
https://cloud.google.com/storage/docs/apis

Indeed, you could try the Java interface that should work with Genero:
https://googleapis.dev/java/google-cloud-storage/latest/index.html

The other option is the REST apis with JSON or XML:
https://cloud.google.com/storage/docs/json_api
https://cloud.google.com/storage/docs/xml-api/overview

As Google does not provide a service description (WSDL or openapi) we cannot automatically generate the client stubs.
You will need implement the client functions with GWS low level apis. That can be done with your 3.10 version.

You might mis a PATCH verb for some apis. PATCH is only available with V4.

Depending on the number of Google apis you use that could be quite fast as Google provide request/response samples.

About the OAuth authentication you have a simple in $FGLDIR/web_utilities/services/openid-connect.
Maybe you can contact our professional services and see if they can help you.

Best regards,
Sisa.


Title: Re: library for accessing Google Cloud Storage APIs
Post by: Francois G. on September 08, 2021, 11:37:31 am
Thanks a lot


Title: Re: library for accessing Google Cloud Storage APIs
Post by: jhon a. on December 16, 2021, 11:06:24 am
Thanks for your information