google-api-client

Google+ JavaScript API: How to detect user sign in status?

荒凉一梦 提交于 2019-12-10 16:55:26
问题 I have deployed Google+ Sign-in Button, now I have to provide Sign-Out Button , before that, I need to know whether the user is still signed in, by which I can then show or hide this button. I found this documentation: gapi.auth.checkSessionState(sessionParams, callback) : https://developers.google.com/+/web/api/javascript?hl=en#gapiauthchecksessionstatesessionparams_callback Could someone demo how to use it ? Many thanks. 回答1: You don't need to use a separate function call to determine the

Receiving error 403 in Google Drive API - Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup

半腔热情 提交于 2019-12-10 16:26:00
问题 I'm using the Google Drive API for ruby, and I'm trying to insert a file into an user drive. I can insert the file with success, but then, when I try to get the file Self Link, this is the URL returned https://www.googleapis.com/drive/v2/files/1PxrbKaO2xwOonUO0TB0FO3pkZDnSmRKTvIUmXw0vL6w, that says that i have exceeded the number of unauthenticated requests. Well, I'm pretty sure I'm authenticated, because I followed all the tutorials and the code is almost the same. Anyone knows why is this

“message”: “The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.”

本秂侑毒 提交于 2019-12-10 14:58:35
问题 I am trying to use the following API to download reviews for Android Apps. https://developers.google.com/android-publisher/api-ref/reviews But it requires authentication. So I followed the instructions that were linked in the link above. I was able to get an access token. But I get the following response: { "error": { "errors": [ { "domain": "androidpublisher", "reason": "projectNotLinked", "message": "The project id used to call the Google Play Developer API has not been linked in the Google

Google+ Sign In cross client(android/web) authentication

大城市里の小女人 提交于 2019-12-10 10:53:23
问题 i'm trying to integrate 'Log in with Google' in app that have an android and web component. Everything in the web component is working fine with the following steps: 1. Rendering the view with an anti-forgery token, client id and app name. $state = md5(rand()); Session::set('state', $state); $this->view->render('login', array( 'CLIENT_ID' => 'my_web_client_id', 'STATE' => $state, 'APPLICATION_NAME' => 'my_app_name')); 2. When user clicks on the Google's SignIn button, obtain the one-time code

Google Cloud DNS Services - entity.change parameter is required but missing

左心房为你撑大大i 提交于 2019-12-10 10:34:42
问题 With the following code using Google's PHP API Client I am receiving this response. Google_Service_Exception with message 'Error calling POST https://www.googleapis.com/dns/v1/projects/PROJECT-NAME/managedZones/DNSZONE/changes: (400) The 'entity.change' parameter is required but was missing. Where PROJECT-NAME and DNSZONE are my project and zone. $client_email = MYCLIENT; $private_key = file_get_contents('config/credentials/KEY.p12'); $scopes = array('https://www.googleapis.com/auth/ndev

How can I keep my google plus session opened after android application close?

我的未来我决定 提交于 2019-12-10 10:29:15
问题 this is my first time posting here because I've never had the need before because every question I had was already answered! The thing is that I'm trying to log in my android application with google plus but if I close my application.. I don't know how to see if the user was already signed in.. Is there any way to do check it? For example: - You login in my application and then you go to the MainActivity instead of the login activity. - Then you don't log out, you simply close my app for..

Getting 500 Error when using Google Drive API to update permissions

孤街浪徒 提交于 2019-12-10 02:03:58
问题 I am getting 500 error when I am trying to give access permission of any file. I don't want to send e-mail when the file is shared with someone. I want to stop the notification emails. Insert insert = service.permissions().insert(fileId, newPerm); insert.setSendNotificationEmails(false); newPerm = insert.execute(); 500 OK { "code" : 500, "errors" : [ { "domain" : "global", "message" : "Internal Error. User message: \"An internal error has occurred which prevented the sharing of these item(s):

How can I make http call to DialogFlow V2 using simple ajax jQuery?

一曲冷凌霜 提交于 2019-12-10 00:30:27
问题 I have been using DialogFlow v1 before using simply jquery and it was pretty straigh forward working! Now that I have to switch to V2 I am stuck on how to keep somehow same code but just modify with the V2! I have been looking at this client library for V2: https://github.com/dialogflow/dialogflow-nodejs-client-v2#using-the-client-library But I dont wanna use Node.js I just dont want to do somthing like node server.js to run the app, also I am not sure if I can mix jQuery with Node.js. My

Google Drive API: list files with no parent

故事扮演 提交于 2019-12-09 05:53:01
问题 The files in Google domain that I administer have gotten into a bad state; there are thousands of files residing in the root directory. I want to identify these files and move them to a folder underneath "My Drive". When I use the API to list the parents for one of these orphaned files, the result is an empty array. To determine if a file is orphaned, I can iterate over all the files in my domain, and request the list of parents for each. If the list is empty, I know that the file is orphaned

How do I retrieve Google Analytics report data using v3 of their .NET api?

此生再无相见时 提交于 2019-12-09 05:21:48
问题 I've been trying to retrieve Google analytics reports using their provided .NET api and have really been scratching my head over how I actually retrieve anything using the newest version, v3, which is available here: http://code.google.com/apis/analytics/docs/gdata/v3/gdataLibraries.html For example, I'd like to retrieve a report query like this one: https://www.google.com/analytics/feeds/data?dimensions=ga:browser&end-date=2012-01-25&ids=ga:ACCOUNTID&metrics=ga:visits&start-date=2011-12-25 I