Google Drive embedder issue - google-api

Is there a Google Drive embedder that can open different files within the iframe itself, instead of redirecting to the google drive on a new tab?

Related

Is there a function in Google Drive API to get if the file was downloaded or opened

I am trying to get a date and time when a linked file is opened in a shared link in Google Drive?
you can use the Reports API of the GSuite Admin SDK, with which you'd need to list the Activities, of type Drive Audit Activity Events. without a GSuite Domain, this feature might not be available.

Is there a way to check Google drive storage using Drive API for Android?

I am currently using below component for a Xamarin app.
https://components.xamarin.com/gettingstarted/googleplayservices-drive
I tried uploading a file to a Google drive that has a full storage using above component and it seems to successfully upload and returns a successful response. When I retrieve all files in the drive's folder it seems to be there for a few seconds then disappears.
In some cases, applications may need to use the Google Drive web service to access additional features or access broader scopes than what is available in the Google Drive Android API.
Google does not expose the user's Drive storage quota within the Android.Gms.Drive api.
You will need to use the Rest APIs using an Auth2 token that has been authorization a Drive scope and call:
https://www.googleapis.com/drive/v3/about
With the Json response, you can access storageQuota:
{
"storageQuota": {
"limit": "16106127360",
"usage": "3115832693",
"usageInDrive": "373280402",
"usageInDriveTrash": "46755721"
}
}
Google Ref: About: get

Google Drive/Doc API Saving and Importing

My website currently creates a word document for users (docx format) and sends it to them as a downloadable so they can save it to their computer.
What I would like to know is if an Open in Google Doc "Button/Feature" exists. So instead of downloading the docx, the user could open it directly into their Google Drive and/or Google Doc account.
Is this possible?
Thanks,

Trying to use Google Drive API from native Windows service throws "Not authorized to request the scopes"

A bit of an intro from where I am coming from: With as little development effort as possible, I'd like to gain access to Google Drive (scope: https://www.googleapis.com/auth/drive) to permanently delete files presently in the Trash.
On a Windows system, I have Google Drive installed and it's syncing files from a directory folder. As files get deleted, they move to the Trash within Google Drive, but they never get deleted hence causing the account going over quota. The windows service responsible for maintaining the files within the local Windows Google Drive folder structure is written in C# and hence I wanted to leverage it to reach out to Google Drive utilizing the Drive API to permanently delete files within the Trash.
However, when using Google Drive API, I have run into 2 issues:
When requesting the scope "https://www.googleapis.com/auth/drive", I get the following response
"error" : "invalid_scope"
"error_description" : "Not authorized to request the scopes: [https://www.googleapis.com/auth/drive]"
"error_uri" : "http://code.google.com/apis/accounts/docs/OAuth2.html"
I thought to have found a workaround for issue 1) in that some recommend using scope "https://docs.google.com/feeds" instead. However, when the account owner for Google Drive confirms the user_code, I never get the expected access and refresh tokens. Instead the polling will keep receiving
"error" : "authorization_pending".
Just to complete the story: Since I have no UI for the Windows service, I chose to follow the OAuth 2.0 for Devices instructions for proper authentication. The user receives the URL for authentication as well as the user code per email. So the Windows Service upon submitting client_id and scope will generate an email for the end user, which includes the received verification_url and user_code.
When using scope "https://docs.google.com/feeds", I notice that no app gets added to the authorized apps list on the Google Drive account. However, when using the Google APIs Explorer, it got added to the list. So my hunch is that this scope won't cut it for accessing Google Drive and hence the error "authorization_pending" keeps getting thrown.
So bottom line question: Will Google API simply not get Google Drive access and MUST I use Google Drive SDK instead of Google API? In that case, I guess, I would have to create some web UI capable of communicating with my Windows service - correct?
Really do appreciate any great insight into the details I have been fighting this for a few nights now. Thank you!!!

Creating embedded app in Yammer

Is it possible to create an App that has an embedded page (iframe/etc) inside Yammer ?
Looks like the apps are only able to manipulate Yammer from outside (Open Graph) but can't actually be pages inside Yammer
(Similar to apps in facebook)
Thanks
Yammer doesn't have third-party app running inside users' home page/feed. However Apps can be listed under Yammer Directory and users can go from their menu inside Yammer to browse the apps and use them. Existing apps can be found at: https://www.yammer.com/apps?from=nav

Resources