google-drive-realtime-api

Google Drive API - list specific files in a specific folder using Objective-C

*爱你&永不变心* 提交于 2020-01-14 02:03:21
问题 I'm working on a Google Drive integration for iOS and I've hit a snag—I need to check for the existence of a file in a folder, but I keep getting a "500 Internal Error" response no matter how I seem to put together the request. I think this should be legit: // self.directoryDriveFile.identifier is a valid folder identifier retrieved on previous request GTLQueryDrive *query = [GTLQueryDrive queryForChildrenListWithFolderId:self.directoryDriveFile.identifier]; // add query to specify the file

Google API OAuth for Drive API is not working. Getting Error: origin_mismatch

久未见 提交于 2020-01-11 03:11:08
问题 I am trying to run the quick start code of Real Time API of Google Drive. I believe I did everything right. But I am getting Error: origin_mismatch Request Details openid_connect_request=true cookie_policy_enforce=false scope=https://www.googleapis.com/auth/drive.install https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/plus.me response_type=token access_type=online redirect_uri=postmessage proxy=oauth2relay601571239 origin=http://127.0.0.1 state=811328575|0.818765953

How to get an access to Google Drive API service account from web browser

﹥>﹥吖頭↗ 提交于 2019-12-30 05:35:08
问题 I use "Service account" method for using Google Drive API. I need to get an access to my storage through Web browser to make a folder structure and have an ability to change/remove/add files quickly without calling API commands. Is there an ability to login under xxx@developer.gserviceaccount.com account? Or are there any other ways? Any help would be really appreciated! 回答1: You may like to take a look at JWT JavaScript implementations such as jwt-js [1] to reimplement the service account

Google Realtime API - creating and removing shortcut file in Google Drive

我与影子孤独终老i 提交于 2019-12-24 20:01:00
问题 Looking at Realtime API quickstart example, a shortcut file is used to store realtime document model. I'm assuming that this is a file that holds realtime document model state. Question: do I need to create and clean up this shortcut file for each collaboration session? Note: Eventually I want to persist data to my database, not Google Drive. 回答1: From an API perspective, the realtime documents are designed to be persistent storage. The files are long lived, and there is there is no need to

Drive Realtime API model size limit exceeded despite empty root

空扰寡人 提交于 2019-12-24 01:39:39
问题 I have a drive file that seems to have a corrupted or leaky realtime document. When I call realtimeDocument.getModel().getRoot().toString(), the output is {slides: []} , but when I try to insert a new slide (a custom object with 10 or 15 small string properties), I get a size limit error. Model size limit has been exceeded. Used: 10681723 bytes; Limit: 10485760 bytes Is there a way I can reinitialize the realtime document or otherwise get it to trim itself down? This only seems to be

Google Drive API OAuth 2.0; Error: origin_mismatch [closed]

为君一笑 提交于 2019-12-22 03:35:57
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm having trouble creating a valid google drive API for my website. I may sound like a complete noob, but I created a file called quickstart.html in my main ftp directory and copied and pasted the code from https://developers.google.com/drive/quickstart-js#step_1_enable_the_drive_api and replaced the client id

Google Drive API - too slow.

你离开我真会死。 提交于 2019-12-21 20:04:37
问题 I've just working on Google Drive API. I have one problem, it's too slow. I use methods like in the Documentation. For example: List<File> getFilesByParrentId(String Id, Drive service) throws IOException { Children.List request = service.children().list(Id); ChildList children = request.execute(); List<ChildReference> childList = children.getItems(); File file; List<File> files = new ArrayList<File>(); for (ChildReference child : childList) { file = getFilebyId(child.getId(), service); if

Google Drive API - too slow.

天涯浪子 提交于 2019-12-21 20:04:23
问题 I've just working on Google Drive API. I have one problem, it's too slow. I use methods like in the Documentation. For example: List<File> getFilesByParrentId(String Id, Drive service) throws IOException { Children.List request = service.children().list(Id); ChildList children = request.execute(); List<ChildReference> childList = children.getItems(); File file; List<File> files = new ArrayList<File>(); for (ChildReference child : childList) { file = getFilebyId(child.getId(), service); if

How do I use the Google drive API key to access drive content from android application?

假如想象 提交于 2019-12-21 06:18:40
问题 I can't access Google drive. I created an API KEY in Google API console and enabled Google Drive API and SDK. Where do I set that API KEY in code? Drive builder does not have a setJsonHttpRequestInitializer method. Where can I set the KEY?Is there alternatives? private Drive getDriveService(String token) { HttpTransport ht = AndroidHttp.newCompatibleTransport(); JacksonFactory jsonFactory = new JacksonFactory(); Credential credentials = new GoogleCredential().setAccessToken(token); Drive

Google Drive API - Error 500 - Simple API Access

冷暖自知 提交于 2019-12-20 03:34:08
问题 For months I've been using the Google Drive API for simple access to fetch metadata about publicly shared document IDs. All of a sudden about a week ago (April 16) it stopped working. I've tried repeatedly from different machines (PCs and Linux servers) with browsers and cURL and WGET, and I have even created new Google API accounts to try using different API keys, but it fails 100% of the time. Example request URL: https://www.googleapis.com/drive/v2/files/0By7D4SJX3kYEaGpneE1VaUN6OG8?key