google-api

Google Sheets API Error: invalid_user: Robot is missing a project number

扶醉桌前 提交于 2019-12-23 17:23:19
问题 I am getting invalid_user: Robot is missing a project number. when trying to access google sheets using the service account created in my project. I followed the exact steps mention in the URL: https://www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html It seems to work for everyone else, and surprisingly I am not able to find any solution on the web. Accessing the data using oAuth credentials is working good for me, but I want to deploy the code

Google Users photos API - get the public user photo without authenticating

被刻印的时光 ゝ 提交于 2019-12-23 16:54:58
问题 Up until now, we used the Google Plus API to get a user's public photo. All we needed was the user id to get the photo (as described here). Now that this and the Picasa APIs are being deprecated, the only alternative I found is using the Users.photos API (as described here). As you can see in the description, this API requires authorization, although the deprecated APIs did not, and the photo I wish to get is public. Not all of our users login with Google, but I want to be able to show

cannot download file from google drive in ios

寵の児 提交于 2019-12-23 16:48:24
问题 I am very new to IOS development, I am developing an app in which I want to download a file from Google Drive (pdf,doxc,doc and xlxs) and which will be sent to sent it to our server. First I have installed it in pod file by using pod 'GoogleAPIClient/Drive', '~> 1.0.2' pod 'GTMOAuth2', '~> 1.1.0' Second I created a project in Google Developer Console with bundle id and got client id, I have saved it into my project. When user clicks select file button -(IBAction)onclickfileFromDrive:(id

How to include Google App Engine for PHP in my scripts / autoloading?

我怕爱的太早我们不能终老 提交于 2019-12-23 16:27:28
问题 I have a website on an Ubuntu webserver (not an app and not hosted at App Engine) and I want to use google cloud storage for the upload/download of large files. I am trying to upload a file directly to the Google Cloud Storage which isn't working (maybe because I made some basic errors). I have installed the Google Cloud SDK and downloaded and unzipped Google App Engine. If I now include CloudStorageTools.php I get an the error: Class 'google\appengine\CreateUploadURLRequest' not found" My

How can I show a list of *all* available calendars using Google Calendar API v3 / Google API Client Library?

岁酱吖の 提交于 2019-12-23 16:09:33
问题 I have been trying to access the Google Calendar API v3 using PHP. Initially, I want to simply list the user calendars that are accessible to my call to the API. To do so, I have downloaded the Google API PHP Client Library and have attempted to use the following code (which is sourced, with my adaptations, from https://mytechscraps.wordpress.com/2014/05/15/accessing-google-calendar-using-the-php-api/ ): <?php //error_reporting(0); //@ini_set('display_errors', 0); // If you've used composer

Google calendar API update “Missing end time”

瘦欲@ 提交于 2019-12-23 15:45:02
问题 I'm trying to update an event using: PUT https://www.googleapis.com/calendar/v3/calendars/primary/events/q4es0o2o70naq8idj1dj6q4354 { "reminders" {"useDefault":true}, "summary":"updatedsummary", "description":"updated desc" } but get a response: { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Missing end time." } ], "code": 400, "message": "Missing end time." } } Why do I need a end time if I just need to update a summary or other fields? 回答1: PUT https://www

Reports API 503 Backend Error

混江龙づ霸主 提交于 2019-12-23 14:54:22
问题 For the past couple of weeks the batch task I use to retrieve User Usage Reports from the Reports API has been failing with the following response: com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 OK { "code" : 503, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" }], "message" : "Backend Error" } Is anyone else seeing this error? Seems like an internal error on the API. Is there anything I can do on my end to avoid this problem?

Reports API 503 Backend Error

空扰寡人 提交于 2019-12-23 14:54:09
问题 For the past couple of weeks the batch task I use to retrieve User Usage Reports from the Reports API has been failing with the following response: com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 OK { "code" : 503, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" }], "message" : "Backend Error" } Is anyone else seeing this error? Seems like an internal error on the API. Is there anything I can do on my end to avoid this problem?

Google Tasks API does not give update about Task completion when New Gmail Theme used

北慕城南 提交于 2019-12-23 12:52:16
问题 First I created a Task using below link: https://mail.google.com/tasks/canvas Then I marked it as Completed. When I checked the API Response for the same using: Services > Tasks API v1 > tasks.tasks.list [Returns all tasks in the specified task list.] I was able to view the updates & found the task i marked as complete. However when I did the same using New interface (theme) from GMail, I found that the task I updated with completion was not at all there in above API Response. Thus Google

Moving files with Google Drive API v3

北战南征 提交于 2019-12-23 12:39:38
问题 Im trying to move a file from one folder to another using the Google Drive API v3. I found documentation how to this here. I used the .NET sample code from the documentation page and created a method that looks like this: public ActionResult MoveFile(string fileToMove, string destination) { DriveService service = new DriveService(new BaseClientService.Initializer { HttpClientInitializer = <USER CREDENTIAL>, ApplicationName = "APPNAME" }); var searchFiles = service.Files.List(); searchFiles