google-api

Changing default state of noauth_local_webserver?

徘徊边缘 提交于 2019-12-22 05:31:37
问题 I'm currently making a GUI YouTube video uploader for my community, but since I don't want all of my users to get my client_id and client_secret, I encoded them. Problem is that whenever program runs (it's not being run from command line using parameters, it gets those informations from Tkinter GUI) it start to authenticate users via web link, which contains real client_id and client_secret. I tried to use --noauth_local_webserver parameter but without success, since nothing is being run from

Changing default state of noauth_local_webserver?

一世执手 提交于 2019-12-22 05:31:12
问题 I'm currently making a GUI YouTube video uploader for my community, but since I don't want all of my users to get my client_id and client_secret, I encoded them. Problem is that whenever program runs (it's not being run from command line using parameters, it gets those informations from Tkinter GUI) it start to authenticate users via web link, which contains real client_id and client_secret. I tried to use --noauth_local_webserver parameter but without success, since nothing is being run from

Google API + proxy + httplib2

孤人 提交于 2019-12-22 05:25:28
问题 I'm currently running a script to pull data from Google Analytics with googleapiclient Phyton package (that is based on httplib2 client object) --> My script works perfectly without any proxy. But I have to put it behind my corporate proxy, so I need to adapt my httplib2.Http() object to embed proxy information. Following httplib2 doc1 I tried: pi = httplib2.proxy_info_from_url('http://user:pwd@someproxy:80') httplib2.Http(proxy_info=pi).request("http://www.google.com") But it did not work. I

Make google auth request gapi.auth without a popup

余生颓废 提交于 2019-12-22 05:19:26
问题 Need to make auth request in js but the browser does not support popups. Is there any way to redirect to a new url or show the request in the in html5 page of the application 回答1: By using this code check if user authorized your app gapi.auth.authorize({client_id: clientId, scope: scopes, immediate: true}, callbackAuthResult); Note: immediate:true if you set immediate true then it wont show popup. You see? You don't open the popup, and manage the stuff in the callback. This callback is

Google calendar api CalendarList List return empty element

醉酒当歌 提交于 2019-12-22 05:00:50
问题 EDIT: The original poster asked this for C# , but the same problem occurs regardless of the library used, and its solution is language independent . Using C# lib, string service_account = "myaccount@developer.gserviceaccount.com"; var certificate = new X509Certificate2(@"pathtomy-privatekey.p12", "notasecret", X509KeyStorageFlags.Exportable); ServiceAccountCredential credential = new ServiceAccountCredential( new ServiceAccountCredential.Initializer(service_account) { Scopes = new[] {

Creating GoogleApiClient for multiple activities

狂风中的少年 提交于 2019-12-22 04:08:24
问题 I am developing an android app with Google+ API. I am having multiple activities which each require one instance of GoogleApiClient. As I understand from this post it is possible to call the same instance of GoogleApiClient for each activity. My question is how do we create copies of the GoogleApiClient specifically? Do we build one again with the .addApi(), .addscope() and implement onConnected method and OnConnectedFailedListener method again? Because it seems repetitive and inefficient.

nodejs googleapis, authClient.request is not a function

岁酱吖の 提交于 2019-12-22 03:34:00
问题 I am creating an oauth2client in one function like so and returning it. I actually do pass in the clien id, secret, redirect url, and credentials. Those are all correct from what I have checked. var OAuth2 = google.auth.OAuth2; var oauth2Client = new OAuth2(CLIENT_ID, CLIENT_SECRET, REDIRECT_URL); ... credentials = { access_token: accessToken, refresh_token: refreshToken }; oauth2Client.setCredentials(credentials); I then do this in the function where the oauth2client object is returned: var

Integrating Google Sign-In into Android App

一世执手 提交于 2019-12-22 01:19:02
问题 I am following https://developers.google.com/identity/sign-in/android/start-integrating guide to integrate google Sign-in into my android app. I am working on a project where Its not possible for me to put configuration file into app folder of android project. I want to know is there any alternative for that. Can I put API key in the AndroidManifest.xml as a meta-data tag under application tag instead of putting google-services.json in app directory as allowed with Google map API (reference

Can't read phone numbers from user's google profile using - auth/user.phonenumbers.read scope

大憨熊 提交于 2019-12-22 00:39:36
问题 Based on the documentation of Google People API I am using profile scope - https://www.googleapis.com/auth/user.phonenumbers.read and PersonFields=phoneNumbers to read the authenticated user's phone numbers only in their Google profile (none from the contact list). I am using API key and oAuth accesstoken to authorise the request. The google people API is not fetching the phone numbers associated with the profile with the above scope alone. Adding the scope for the entire contact list read

get the first 10 google results using googleapi

瘦欲@ 提交于 2019-12-21 23:19:03
问题 I need to get the first 10 google results for example: ... query = urllib.urlencode({'q' : 'example'}) ... ... url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&%s' \ ... % (query) ... search_results = urllib.urlopen(url) ... json = simplejson.loads(search_results.read()) ... results = json['responseData']['results'] this will give me the results of the first page, but I`d like to get more google results, do anyone know how to do that? 回答1: I've done it in the past, here is