How can I use the google api for webapp?

I want to upload video files in HDD of TV into google drive or YouTube using the webapp.
At that case, google api is needed and also needed to access to local HDD files.

For using the google api at webapp, is the below script possible in webapp html code? I've seen on sample code of google site.
script async defer src="" onload="gapiLoaded()">/script
script async defer src="" onload="gisLoaded()">/script

And how can I access to files on HDD connected to TV?

All these are for using google drive api explained in below site.

Hi @hanq96, welcome to the forum.

Unfortunately, this forum only for webOS Open Source Edition.
For webOS TV, please visit the TV Forum .