Support for Google Slides - google-apps-script

Are there any plans for supporting apps script in google slides?
I wanted to code a progress bar to.. well show the progress of my presentation but as it turns out, slides does not support apps script.

You may want to regularly check Google Apps Script - Release Notes to be updated on the major changes in each release of Google Apps Script. This is intended to help developers identify recent changes in behavior.
However, you may want to also check features that you can use to show progress bar with the use of Google Slides API. Many of the features that make Google Slides so successful are available through the API. This lets you access and update presentations programatically, integrating data from various sources and producing finished presentations in a fraction of the time.
I haven't actually tried using this API, but this SO post shows how you can use the apps-script-oauth2 library to generate your OAuth token and be able to use Google Slides API.
For missing features that you might need or like, you may file requests here.
Hope that helps!

Related

How to insert RichLink (Chip Block) in Google Docs using Google App Script

Google Docs has recently introduced a feature where we can refer to
Date
Person
Google Drive Document
in the form of a Chip Block (as shown in the picture above)
I am trying to generate such chip block using Google App Script.
Rich Link Documentation does not have any code snippet or method to add a Rich Link inside a document.
Document Service page also doesn't have detail regarding how to insert a Rich Link.
I wonder whether the feature is not yet implemented in the Google App Script Api
The smart chips can be retrieved using the methods released on August 23, 2021. Ref. But, unfortunately, in the current stage, it seems that there are no methods for inserting the smart chips. Although I checked about this at both Google Document service and Google Docs API, I couldn't find the methods for this. So, I think that is the current answer.
And also, when I checked the Google issue tracker, I couldn't find anything about your goal. Ref So, how about reporting your goal as a future request at the issue tracker?

Google Drive API: Apply label to the attachments

Question on applying label while uploading the attachments.
I was able to upload attachments into google drive through API. Is it possible to apply label while uploading the attachments. Please advise
The feature which allows for adding labels to the drive file metadata for Google workspace is currently in beta.
Beta: Use automated classification with DLP for Drive
Being that it is a beta feature this feature has not been added to the Google drive API, nor has any information been released that it will in the future be added to the google drive api.
There for i strongly recommend that you add a feature request so that Google is aware that you would like to be able to use this new feature in their API as well feature request
From December 7, 2021 announcement (bold selection mine):
Earlier this year we announced a beta for three features which can help categorize content and enhance content protection at scale. Drive labels are now generally available, and automated classification with Workspace data loss prevention and labels-driven sharing restrictions will become generally available in the coming weeks. Check back on the Workspace blog for updates.
Also, for API usage of labels, it seems to be available, according to help article:
Is it possible to apply labels through an API?
There is a labels API (beta) that you can use to create, edit, apply, and remove labels programmatically. Email drive-labels-feedback#google.com to request access to the labels API beta.

Showing users viewing the doc in Google Drive API app

We are building a web application based on Google Drive API. We'd like to incorporate a facility of displaying who is viewing our "document" in real time like Google docs and spreadsheets are doing.
Implementing it from scratch would be quite challenging because of the necessity to track when a user leaves the page. So we'd first like to check if anything is already available for this purpose.
We have found out Google Analytics API may be helpful, but it can only give us a number, not user names.
Google Drive Realtime API looks promising and suitable for other needs of our development, however at the moment it's not clear whether it might help with displaying current viewers.
Any ideas on possible solutions would be greatly appreciated.
This is possible in the realtime API. See https://developers.google.com/drive/realtime/handle-events#collaborator_events
There is an example of it in the Realtime Playground.

Understanding the authorization flow with Google Drive and Google Play Services

I have gone through Quickstart with Google Drive and I have also used Google Play Services. The docs for Google Drive outline the process of how the authorization flow works. The docs also indicate that developers should not use Drive initiated authorization although it appears that the Quickstart sample app does exactly that. I am left with the impression that Google prefers that the developer handle all the details of authorization.
Yet after trying out sample code that uses Google Play Services (but not for Google Drive), I am left with the impression that Google wants developers to use Google Play Services to handle all the authorization. It seems that Google Play Services simplify the authorization process significantly. Although the docs don't say this, I found elsewhere online that GoogleAuthUtil.getToken manages how access and refresh tokens are retrieved, especially after they expire.
Basically, the issue I am struggling with to understand is whether the Google Drive docs for the API are out of date and Google wants us to rely upon Google Play Services. There seems to be a lot of complexity in the Google Drive authorization process that Google Play Services has eliminated. At the same time, the docs for Google Drive API has been available for over half a year, so it makes me question why Google hasn't updated these docs to show any reflection on how Google Play Services are used with it.
Any insight into this would be appreciated.
The recommended approach for authorization on Android is using Google Play Services. The Android quickstart guide on the Google Drive SDK documentation covers exactly that:
https://developers.google.com/drive/quickstart-android
The Google Drive docs are out of date and Google should really update them. Retrieving tokens and authenticating users should be done using Google Play Services. The only thing you should be using the Google Drive API for is accessing the Google Drive service. Google Play Services handles all the details of authenticating users, retrieving access and refresh tokens and handling all the errors that can arise.

Is there a google drive SDK mail list or RSS feed?

Given Google drive is brand spanking new. I expect there will be lots of changes, more documentation, new code examples, changes in the API. Is there some sort of mailing list or ??? I can use to stay on top of these updates?
Thanks
Andy
The Google Drive SDK has no mailing list. All questions are handled on Stack Overflow, under the google-drive-sdk tag.
For updates about changes to the SDK, subscribe to the Google Apps Developer Blog. Our standard practice is to post about all updates there.
As far as I know there isn't really a mailing list. However, Google does provide many sources for content related to Google Drive. Here is a list:
Google Blog - Introducing Google Drive... yes, really
Twitter - #google
Google Drive Product Forums - Ask, Report, Share
Google Drive SDK - Develop Application Support for Google Drive
Google Drive Help - Customer and Developer
You could do what I did.
Just hover your mouse on the google-drive-sdk tag. You will see two options. Choose between email/RSS.
Attached is the image.
http://goo.gl/bGV8h
Edit: Corrected the link