FAQ Database Discussion Community


Google API Quota on Google API place autocomplete

google-maps,google-api,python-requests,google-places-api
I working on an application I would like to use Google API place autocomplete. It looks like every Google API has a limited use of,2 500 requests per day, even though this special API isn't mentioned in the following page API Google Maps for Work. My question is : How...

Google Admin SDK Directory API: Adding group as member with role “OWNER” gets error

google-api,google-admin-sdk,google-directory-api
Trying to use the new Google Admin SDK for some group creation and adding/removing members to those groups. This is actually just updating some code I had that was previously using the old provisioning API. I'm trying to add a group as a member of a group, with the role...

Can I move a Google API implementation to a web-service?

c#,asp.net,google-api,google-analytics-api,google-api-dotnet-client
I have an in-house CMS system written in ASP.NET C#, and I need to implement a few pages that can allow the user to access and alter their Google Analytics management settings using the Google Analytics management API. I have added the Google.Apis.Analytics.v3 library from NuGet, and I managed to...

SHA1 for Google apis

android,google-api,sha1,android-googleapiclient
Im a bit confused about how to obtain the SHA1 for my app. I saw all the guides which suggest: keytool -list -v -keystore C:\Users\user\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android But when i sign my app for distribution on Google play i sign it with a key (by applying...

Create Spreadsheet using Google Spreadsheet API in Google drive in Java

java,google-api,google-spreadsheet,gmail-api
I had created some tool which was populating the google spreadsheet. It was working fine for 1 year, since today I've error Exception in thread "main" com.google.gdata.util.AuthenticationException: Error authenticating (check service name) at com.google.gdata.client.GoogleAuthTokenFactory.getAuthException(GoogleAuthTokenFactory.java:688) at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:560) at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(GoogleAuthTokenFactory.java:397)...

Display the Google Maps Javascript API usage statistics on a custom website

javascript,google-maps-api-3,google-api
I'm currently using the Google Maps Javascript API for displaying multiple Google Maps on a website. Since the usage is limited for non-paying users, I am trying to keep the usage as low as possible, but I would love to have a way to monitor those usage stats in a...

Gmail API: How to get access token?

php,google-api,google-oauth,google-api-php-client,gmail-api
I am testing the Gmail API. So far I have done the following: I have created the project in the Google Developers Console I have enabled the Gmail API. I have created a new Client ID and the client secret. In my PHP script I have installed the PHP Client...

Getting user credentials using Google+ API

android,google-app-engine,google-api,google-api-java-client
I am trying to include Google sign in in my android application using Google+ Api. I am able to take account details from the user but once signed in I am getting null when requesting for username using call: Plus.PeopleApi.getCurrentPerson(mGoogleApiClient).getDisplayName() And Logcat shows: BasicNetwork.performRequest: Unexpected response code 403 for https://www.googleapis.com/plus/v1/people/me...

Google custom search API and Ruby

ruby,google-api
I wanted to write a Google search scraper/parser to pull employees from Google's index of linkedin.com. Linkedin closed their API, so I wrote a Mechanize/Nokogiri scraper first, which got me captcha'd, so I rewrote the script using the Google search API gem. The problem is, I can't figure out where...

IOS 8 Objective-C Search bar and Table view Using Google Autocomplete

ios,objective-c,uitableview,autocomplete,google-api
I'm new to iOS development and I've been stuck with this problem for two weeks now. I'm trying to make a search bar with an autocomplete function from google search results. The closest I've been able to make this is by following this tutorial by Hybrid Forge. (Other tutorials I...

Does the Google Analytics API throttle requests?

google-api,google-analytics-api
Does the Google Analytics API throttle requests? We have a batch script that I have just moved from v2 to v3 of the API and the requests go through quite well for the first bit (50 queries or so) and then they start taking 4s or so each. Is this...

google apps from app engine

google-app-engine,google-apps-script,google-api,google-docs
I want to produce a Google Apps document based on a (Google doc) template stored on the users Google Drive and some XML data held by a servlet running on Google App Engine. Preferably I want to run as much as possible on the GAE. Is it possible to run...

Access a Google Drive spreadsheet in Ruby on Rails

ruby-on-rails,ruby,oauth,google-api
I'm trying to get the content of a Google Drive spreadsheet, but I can't seem to find a gem that can do it easily. I tried google-drive-ruby, but it involves a step in which I have to get an auth token from Google's website. This is not very helpful, as...

Google API Exception “invalid_grant” in DEVs GlassFish but not in Local

java,oauth,google-api,glassfish
I'm working using OAuth 2.0 to authenticate to a Google's API and everything works just fine in my local GlassFish. The problem begins when I'm deploying to the DEV's GlassFish, which throws me the following exception: com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request { "error" : "invalid_grant" } This is my code: transport...

Google Drive API 500 null errors when copying

google-api,google-drive-sdk,google-api-php-client,google-api-client
I'm getting this error message (100% of the time) when copying a shared file, using the latest version of php library. And I'm getting the same response via the API explorer: developers.google.com/drive/v2/reference/files/copy Google_Exception: Error calling POST https://www.googleapis.com/drive/v2/files/#fileid#/copy: (500) { "error": { "code": 500, "message": null } } This issue seem...

How do I reduce the Socialite scope in Laravel 5?

laravel,google-api,laravel-5,laravel-socialite
I'm successfully using Laravel 5's socialite feature, but I feel that it's asking for more permissions than makes sense for the end user when they sign up. For instance, Google tells my users that I need: Know your basic profile info and list of people in your circles. Includes people...

How to login with another user when using Google for login?

php,authentication,google-api,google-oauth
I am using Google login to authenticate user before they login to my website. Here is what I am doing. User comes to my website Click on login button Login with Google account if user pass google authentication, session is set when user click on logout, session is destroyed Basic...

Google Drive API: I have to fetch only files in that folder without trashed files

c#,c#-4.0,google-api,google-drive-sdk
I am trying to get a list of files in a folder on Google drive using the Google drive API. When I make my request I am getting a list of child elements in that folder including previous deleted files. How do I get only the files that are in...

Advanced gmail search for received emails only

email,google-api,gmail,gmail-api,incoming-mail
I'm using the Google gmail API to get emails from peoples gmail account. I filter for emails containing the word "CompanyName" which have a pdf as an attachment. using the following search query: CompanyName filename:pdf. I now want to further specify this by only getting emails that were received, instead...

Is it possible to modify event data in public google calendar using only public key?

javascript,security,google-api,google-calendar
I use public google calendar in my demo application. And I specified calendar id and public key on my html page. So, can anybody insert/update/delete my events using only public key? Or these operations are allowed only for authorized(through Auth2.0) users?...

Error:Execution failed for task ':app:dexDebug'…' finished with non-zero exit value 2

android,android-studio,google-api,dependencies
Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' finished with non-zero exit value 2 I read some suggestion i try all of them but still i can not the problem.Plz help Here dependencies -> dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.1.1' compile files('libs/google-play-services.jar') compile files('libs/Parse-1.3.2.jar')...

Google api, where to put all those jars

java,eclipse,google-api
I downloaded google Api (flights: qpxExpress), I end up with a zip file full of jars: zip file |____________dependencies |____________libs |____________lib-sources |____________.classpath |____________google_api.jar I associated the google_api.jar with the build path of my project, but where to put the rest of jars (libs, lib sources...), please help?...

Google Analytics Embed API: Display specific account data, not authenticated users

google-api,google-oauth,google-analytics-api
I have this example - Embed API Third Party Visualizations - working locally and on a test server, but I'm unsure of what I need to do to ONLY display our organization's Google Analytics data instead of the user's personal GA account. I created the project and clientID within our...

Raised Gogle Drive API Per-user limit, still getting userRateLimitExceeded errors

google-api,google-drive-sdk,quota
Similar to Raising Google Drive API per-user limit does not prevent rate limit exceptions In Drive API Console, quotas looks like this: Despite Per-user limit being set to an unnecessarily high requests/sec, I am still getting rate errors at the user-level. What I'm doing: I am using approx 8 threads...

How to clean the list of recent users via Google API?

google-app-engine,google-api
I've been searching Google API reference but didn't manage to find any way to clean the list of recent users. I use logout API call ('https://www.google.com/accounts/Logout?continue=https://appengine.google.com/_ah/logout') but the next time I start logging in, I see the previous accounts. Every time I have to click "Sign in with different account"...

Unauthorised access to Email Settings Google API

google-api,google-api-php-client
I am using both GAM and the Google API PHP client library to integrate with Google for Work. I am using a service account and I have authorized the Client ID in the Admin console to access the following two scopes: https://www.googleapis.com/auth/drive https://apps-apis.google.com/a/feeds/emailsettings/2.0/ I have also enabled the Drive API...

Google API: object oauth2 is not a member of package com.google.api.services

google-api,playframework-2.0,sbt,google-api-java-client,google-api-client
I'm developing a web backend using the Google APIs. In order to get the email address of a user, you have to send your access token to a Google tokenInfo service, that will return general information (including your email address). In general Google APIs do not return you the mail...

401 Unauthorized when authentificating with Google for hybrid applications

google-api,google-oauth
I want to use native applications and a web server to get refresh tokens to use for some operations (on google drive). Client ids and secrets have been generated for both the native and the web application using the Google developer console. I'm trying to generate authcodes from the native...

Google Service account user interfece

google-api,google-drive-sdk,google-oauth,service-accounts
How can I login to a Google Service account with the normal web user interface, for example to google drive ? Now I can only login using API using script....

finished with non-zero exit value 2 when I use google login api

java,android,google-api,google-api-java-client,google-login
I want to access the google account to login my app,and I get: Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 My build.grade: apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { applicationId "nthu.nf.project.moocs" minSdkVersion 15 targetSdkVersion 21...

Gmail API: example of a request to the API

php,google-api,google-oauth,google-api-php-client,gmail-api
I am trying access the Gmail API with my application. I should have done properly all the setup and I am testing a request to the API, in the specific the request to get the messages as read only. My code: public function gmail_get_messages() { $client = new Google_Client(); $client->setApplicationName("Gmail...

I want to upload video on youtube using client side login. without open web page permission

c#,.net,google-api,youtube-api,google-api-dotnet-client
When I upload video to YouTube using client side login. The first time redirect to UI for permissions. I want upload without redirect to web page. I need to execute this code on server. Here is my code. private async Task<string> Run(string title, string description, string filepath) { var videoID...

Google Identity Toolkit returns INVALID_CREDENTIALS

php,google-api,google-api-php-client,google-identity-toolkit
I'm currently trying to implement a forgot password feature using the Google Identity Toolkit. The PHP backend is trying to get the oob code because client (iOS) does not have sufficient privileges. Whenever I run the script I get an error of INVALID_CREDENTIALS, more specifically: oob Code: string(249) "{ "error":...

MultiDex issue - Execution failed for task ':app:dexDebug'

android,google-api,google-calendar,android-gradle,build.gradle
I face a problem while adding a line for Google Calendar API to build.gradle. Here is the error: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]:65536 at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502) at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277) at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491) at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168) at...

Google API OAuth 2.0 Service Account C# First time vs every day use

c#,oauth,google-api,service-accounts
Google API OAuth 2.0 servcie Account C# ( drive api) I am only targeting ONE Service Account. I am looking in authenticating to a service account. following this example: Google example As far I can understand, the token is permanent not 1h like other authentication type. Yet there is no...

Limited number of rows returned from Google spreadsheet and the Sheets Api

c#,google-api
I have a spreadsheet on Google Drive with 571 rows that I read from an other application. I call it using the Google.GData.Spreadsheets 2.2.0 lib and the following piece of simplified code. static void Main(string[] args) { var certificate = new X509Certificate2("Key.p12", "blahblah", X509KeyStorageFlags.Exportable); const string user = "blahblah@developer.gserviceaccount.com"; var...

Java Google Coantacts API Access Service Account Authentication

java,google-api,authorization,google-oauth,google-api-java-client
I'm trying to access Googles Contacts API but my attempt failed already on getting authorized. From other (web) languages i'm used to the APIConsole and the public API-key (authorization). GoogleCredential credential = new GoogleCredential().setAccessToken("<<PublicAPIKey>>"); System.out.println(credential.refreshToken()); // false This way I'm not able to refresh the token and be unsure about...

ngAutoComplete with Google Suggest api

javascript,angularjs,autocomplete,google-api,google-suggest
AngularJS has ngAutoComplete that works with Google place perfectly. How can I make it work with Google Suggest API (the suggested keywords when typing in Google Search input box)? Is there something out of the box? If not, what is the best way to implement it? (if I need my...

Need clarification on email_verified field of ID Token

google-api,google-oauth,google-openid
I'm using Google's OpenID Connect service to authenticate users. I was considering rejecting all accounts if the email_verified field was false, but I don't see a real world scenario where someone will hit my system with this field set to false. The first time you log in to Google the...

Can I use Google flight api without an Api Key with the free quota (demo) in Java program

google-api,google-authentication,google-qpx-express-api
I want to use the google flight api in a non production way, I 'm develloping in java, I know that there is a free quota limited to 50 req/day, but how can use it having the search request requires an Api Key? Thank's

How to use YouTube API for an iOS app?

ios,objective-c,google-api,youtube-api,integration
I have searched the web for tutorials and instructions but could not find any on this... So I was hoping maybe someone here can point me in the right direction or just link some good tutorials. (By the way I am willing to make a basic YouTube client app which...

Making an iOS authorised Google API call

ios,google-api,access-token
I have integrated Google Sign-in into my iOS app and retrieved the access tokens after signing in. I am now wanting to make authorised API calls to Google, but am unsure how to do this to include the token. Can someone please share some code that I can use to...

Google Weather API

api,google-api,weather,weather-api
I want to make an app using Google weather API. But I don't have any knowledge about it. How do I use API? Could you explain step by step how I start project?

Google api oauth prolog

oauth,google-api,prolog,swi-prolog
I am trying to connect to google oauth. I have used javascript to make a connection to google and get a code, I then understand I need to exchange this code for a token as detailed here: https://developers.google.com/identity/protocols/OAuth2WebServer The code I have is : :- use_module(library(http/http_dispatch)). :- use_module(library(http/http_error)). :- use_module(library(http/html_write))....

two open graph images (facebook size and google size)

facebook,google-api,share,opengraph
How could I include open graph images (two different ones; two different sizes) For both Facebook sharer and google sharer? .. via META open graph method....

Freebase Search API - Get All Results

java,google-api,resultset,freebase
Is it possible now to get all results from Freebase Search API? Today I was trying 2 approaches in Java: 1) www.googleapis.com/freebase/v1/search?filter=..." Using "cursor"(integer) and "limit" options. 2) www.freebase.com/ajax/156b.lib.www.tags.svn.freebase-site.googlecode.dev/cuecard/mqlread.ajax?&query= Try to simulate 'Query Editor' (https://www.freebase.com/query) Using "cursor" from the previous results set (String). But in both of these approaches I...

Unable to implement Google API 'Search using a specific app'

android,google-api
I am trying to implement the 'Search using a specific app' functionality as per the android documentation. But I am unable to get it working. This is my query 'Ok google, search for xyz on helloapp' Following is my implementation. I have added meta data which is not required, but...

Download multiple files using JavaScript

javascript,google-api
I'm very new to this so am learning by trial and error. I have a javascript which so far is authorising access to a users Google Drive. It creates an array of some files it finds and I can access the meta data to get the DownloadURL of each file....

Is it possible to use service account with google cloud print [duplicate]

c#,oauth,google-api,google-cloud-print
This question already has an answer here: Share printer with Google API Service Account 1 answer I have an application that uses google cloud print. The printers are registered on a company google account. I have to change the application to use oAuth now and since the application runs...

Google Calendar: How to check guest is not busy and available to book through google calendar

google-apps-script,google-api,google-calendar
I am exploring to write google calendar api integration through google scripts or apis. Is there a way I can check a guest is available before I book an event ?...

Google Developer API V3 for video upload in YouTube C#.net

c#,youtube,google-api,youtube-api,google-api-dotnet-client
I have been using google's reputed API V2 for uploading the videos on YouTube from my web application as there has been up gradation in API to V3 , I am unable to upload the same through the same code. I have tried with the new application for uploading the...

Google Translate API text-to-speech: http requests forbidden

javascript,google-api,text-to-speech,http-status-code-403,google-translate
I am making a language learning web app that when you hover over the word, it pronounces it for you. I'd like to access the native speaker translations from Google Translate API. I've found this resource which gives http://translate.google.com/translate_tts as the base URL and tl for target language and q...

How can I pass a google api access_token from java server to gapi javascript client?

java,javascript,google-api,google-api-js-client
I'm able to get Credentials using AuthorizationCodeFlow in Java running in Tomcat. Now I'm trying to pass the access token I get on the server back to the client so that we are able to use gapi javascript client to do work in the browser without having to go through...

How To submit Google Spreadsheets via Google Api or via Curl

curl,google-api,google-spreadsheet,google-spreadsheet-api,google-form
I tried to submit it via ajax but it displays cross origin request blocked..! so I can't post via ajax. so I am finding way to post it via Curl or using Google API. Any one have idea then please suggest me or give me example. Below is what I...

Google api that convert voice to text?

java,android,google-api,desktop-application
I know that Android has function to convert voice into text. Also I have seen that google has this functionality, too. In fact, google has introduced this in Android . I want to use google Voice to Text api in my desktop application. So is there any google api that...

How to sign in with the Google+ API using Django?

django,oauth,google-api
How might I go about adding a Google+ API sign-in to my Django website?

Fetching Data From Google Calendar API with C#

c#,google-api,google-calendar,google-api-dotnet-client
I would like to fetch data from Google Calendar using Google Calendar API from a C# application. I have my users' emails and password so I don't need OAuth or something and I'm following this guide. Here's a sample code: FeedQuery query = new FeedQuery(); Service service = new Service("cal","company-app-v1.0");...

How to change the google API “service account” name/email address

google-api,google-oauth,google-api-client
I am using the Google API to create a spreadsheet on google drive. My app has a link that says 'Download To Google Doc' The app sends a file to google docs and shares it with the user. The user can then see it in google docs. This all works...

Google Geocoding API, free? [closed]

google-api,licensing,google-geocoding-api
I found the the Google Geocoding API service which is very useful. but in all sample appears necessary to put an argument called Key for provide the google Api Key. That implies that it involves costs, but I saw that it works well without this argoment. example: https://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA You can...

Google Chart Api make use of datetime value

php,mysql,json,google-api,google-visualization
Hello I want in my chart to display the datetime, I made some search over the stack and I found similaer problems like this one but I could not understand how to fix that. The part of the code that i believe i should change is the below.. <?php $DB_NAME...

Google s2 favicon retrieval doesn't work with subdomains

url,google-api,subdomain,favicon
I'm using Google's favicon retrieval url which works well unless using subdomains. This works: https://www.google.com/s2/favicons?domain=facebook.com This doesn't https://www.google.com/s2/favicons?domain=fortawesome.github.io Thoughts?...

Get access token for more than one scope from GoogleAPI's in Android

android,oauth-2.0,google-api,youtube-api,android-youtube-api
I have an application which requests youtube data api's. I need to have access token for some request like to get video's, playlist etc. For this I can simply use GoogleAuthUtil class to get Token by calling: String access_token = GoogleAuthUtil.getToken(Context, userEmail, "oauth2:https://www.googleapis.com/auth/youtube"); Where third parameter is a Scope to...

Providing login_hint option for Google Oauth2 redirect

oauth,google-api,google-oauth
I'm passing in login_hint=1 option as part of Oauth2 request query string but this doesn't appear when I receive a callback from Google Oauth2 after accepting it. I'm only getting: google/oauth2callback?code=4/vadsdaalijfqwo8fdjqojcxadassddsa# I was expecting 1 (which is user id) to come back as part of callback. How do I make...

Annotation chart google function after rangechange

javascript,google-api,google-visualization
I'm using the annotation chart and the map from google api, I would like to know if there's anyway to trigger a function after the range change when the user's clic releases. I just find this google.visualization.events.addListener(chart, 'rangechange', feed_with_chartMap); in the documentation but the function is not only called when...

Unable to authorize using existing access token with Google API node.js SDK

node.js,oauth-2.0,google-api,google-analytics-api
A bit of background first; I've got a PHP-based app which handles the Google OAuth flow and stores the resulting access token in a database. I am able to use this access token perfectly fine in another PHP script, so I don't think the token has expired. The problem comes...

Google Analytics API in PHP backend

php,google-api,google-oauth,google-analytics-api,google-api-php-client
So I want to display GA chart in custom PHP backend. So I created APP in https://console.developers.google.com/ but I cant figure out how to access my own google analytics data withouth asking for user to login. For now I have simple code: $client = new Google_Client(); $client->setApplicationName("App Name"); $client->setClientId(CLIENT_ID); $client->setClientSecret(CLIENT_SECRET);...

Google Logging API - What service name to use when writing entries from non-Google application?

google-api,google-cloud-platform,google-cloud-logging
I am trying to use Google Cloud Logging API to write log entries from a web application I'm developing (happens to be .net). To do this, I must use the logging.projects.logs.entries.write request. This request dictates that I provide a serviceName argument: { "entries": [ { "textPayload": "test", "metadata": { "serviceName":...

How to get type of reminder of Google Calendar Event object?

android,google-api,google-calendar
I'm tring to parse object of Google Calendar Event. It`s event have a reminder with type "email". But looking over all fields of this object, the field I did not find the type of reminder. It has "useDefault" paramets only. How I can to get the type of reminder? P.S:...

Are there google apis to update a google sheet

google-api,google-spreadsheet
I want to listen to calendar events and update cells in the google sheet. I have found apis for calendar but are there any apis available to update cells in google sheet ? https://developers.google.com/google-apps/calendar/v3/reference/ Thanks...

Access spreadsheet via Google API invalid_grant

java,google-api,google-spreadsheet,gmail-api
I have created a google form, and keeping the form result in an excell sheet named yht_istekler. I am using following code snippet. taken from Create Spreadsheet using Google Spreadsheet API in Google drive in Java Though I am getting following error, what am I doing wrong? List<TrenSeferScheduleEvent> trenSeferScheduleEventList =...

Google Drive - How to List all Files in a specified folder

php,google-apps-script,google-api,google-drive-sdk,xampp
Hi I am stuck here with this situation, I have tried a number of different approaches but I cannot get what I am after. Situation: I have a large number of files in folders hosted on google drive. For instance a single client folder for reports has between 2000-10000 files(this...

how to show users their Google Calendar using PHP?

php,google-api,google-calendar
I want to try to show user google calendar on my website. I have added a code it display link to to add google calendar. Google access and return url working fine but it will showing 404 error on my website after redirect. I have also added all correct details...

Why this google font is not working?

html,css,google-api
Have this line on my label and is working properly on a Debian server under Apache, but when I uploaded it to my production server (Debian with Apache too) i cannot get the Open Sans Condensed font. <link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300,300italic' rel='stylesheet' type='text/css'> Here's the entire : <head> <meta charset="UTF-8" /> <meta...

unable to add callback: cannot be converted to ConnectionCallbacks

android,google-api
I am trying to add call back to my googleApiClient with addConnectionCallbacks mPlusClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(this).addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN).build(); but i am getting this error: Error:(85, 81) error: incompatible types: PlusBaseActivity cannot be converted to ConnectionCallbacks I am gotten this code from an online tutorial but it doesnt seems to work, please help....

What happened to Android 4.4.2 (API 19) Google APIs?

android,google-api
I am opening up an older android project on a new machine. I am attempting to download the Android 4.4.2 (API 19) Google APIs, but they are not listed. I have the regular SDK Platform installed. I do see Google API system images for the emulator, but not the actual...

Failed sending mail through google api with javascript

javascript,email,google-api,google-api-client
I'm trying to send an email through Google API with JavaScript. My issue is that when I try to send a simple mail with no attachments, I get the following error: 'raw' RFC822 payload message string or uploading message via /upload/* URL required` My code function sendMessage() { gapi.client.load('gmail', 'v1',...

Google API and batch requests for different APIs and limites

google-api,google-calendar
The google calendar API and the google drive API allows batch requests. To do so, you need execute a POST on www.googleapis.com/batch And the body of the request contain the list of GET/POST/DELETE of your differents requests. According to https://developers.google.com/google-apps/calendar/batch and https://developers.google.com/drive/web/batch You can even group requests for multiple users...

Google Books API Cover images over HTTPS fails due to certificate error

google-api,google-books
Starting yesterday requests to cover images via https began failing with ERR_INSECURE_RESPONSE. For example: https://www.googleapis.com/books/v1/volumes/zaRoX10_UsMC When trying to access the https version of the thumbnail: https://bks1.books.google.com/books/content?id=zaRoX10_UsMC&printsec=frontcover&img=1&zoom=1&edge=curl&imgtk=AFLRE72edPPkxV6QHjzfmvf2sug_dIzxNCI02YJVAnqRe6xPdaL1GDx5m-h_2nqbzj2ZJ_krgtSW245c0-gwIF85xUi5rJ2-v07QuQl9ker6apIdeJi27W9RVadaCBwaCqxsQPy-1rt9&source=gbs_api In Chrome this...

Cannot retrieve refresh token for google Oauth2

php,curl,google-api
Im using the following code in php to retreive the access token: $url ="https://accounts.google.com/o/oauth2/token"; $fields = array( "client_id"=>"{your client id}", "client_secret"=>"{your client secret}", "refresh_token"=>"{your refresh token 1/.....}", "grant_type"=>"refresh_token" ); $ch = curl_init($url); //set the url, number of POST vars, POST data curl_setopt($ch, CURLOPT_POST,count($fields)); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch,...

Value cannot be null. Parameter name: baseUri

c#,google-api,google-bigquery,google-api-dotnet-client,service-accounts
I am using Google BigQuery API with Service Account Authorization in C# console application. When i am trying to load CSV job, it throws "Value cannot be null. Parameter name: baseUri" Exception. It specific on only single table, when i am changing the table name it all gets work. Here...

How to by pass authentication in google analytics script?

google-api,google-analytics-api
I would like to display a Google Analytics report in my web application. So far I have successfully Authenticated a user through OAuth with server side and I have successfully stored AccessToken and UserProfileId in my database Table. Now I want to display Chart like Below: Here is the script...

google youtube api query character issue

javascript,google-api
In the Node.js application while sending request to google api if q=Ağrı Dağı response was called as bad request but if i change query to q=Agri Dagi it is working. But in the browser if i enter url like this; https://www.googleapis.com/youtube/v3/search?part=snippet&q=Ağrı Dağı&type=video&key=blabla in spite of using turkish character(ağrı dağı) this...

What is the difference between Android API and Google API?

android,google-api
I have gone through some of the links that difference between the Google API and android API.I have not got clear explanation.Anyone Can you help me please?

Google API client bug, sending locations

android,google-api,google-api-client,android-googleapiclient
I want to create that I send every few seconds a message to GCM. But after some time I want to remove the locationupdates again. For sending the data to the intentservice of gcm I use a pendingintent. Now every time and it happens a lot I get this error...

How to create a script to query Google Browserlocation

json,google-api
I'm trying to figure out a way to get geolocation data from Google's Browser location API. I found JSON, CURL and Google's geolocation, and have it working as far as list of access points in range, but my limited cli-fu won't let me parse this into something I can send...

How to use segments in Google Analytics API

google-api,google-analytics-api,google-api-python-client
In Google Analytics, we are able to create segments like below: From the Google Analytics API explorer, we can pull the segment information be it by segment id or by its code: I would assume we can just cut and paste that code into the google analytics core reporting v3...

502 error when generating X509Certificate2 from p12 certificate in Azure Websites for Google API

c#,asp.net,azure,google-api
I'm using This GoogleJsonWebToken class to generate an access token to be used with json calls to the Google Calendar API. It works perfectly fine in IIS Express on my dev machine when I use the following (using my actual service account email): string p12Path = HttpContext.Current.Server.MapPath("~/App_Data/certificate.p12"); var auth =...

How to insert angular js code?

angularjs,google-api
I'm actually doing an app for a stage, which has to be responsive design. So it has to work on Mobile, Computer and Tablet. For this app I need to use the google api Place Autocomplete. The problem with that is that it doesn't work on mobile, whether it's iOS...

Google Cloud Datastore PropertyFilter Error

php,google-app-engine,google-api,google-cloud-datastore,google-php-sdk
I'm using the google apis php sdk and trying to access some data from my google cloud datastore. I'm authenticating no problem at this point, but am getting an error during my query. I pretty much look through the code in the sdk to implement it, since documentation is null,...

Hide referrer header in API request

javascript,api,google-api,cross-domain,referrer
I need to make requests to Google Translate Text-To-Speech API. I have an enabled key but keep getting blocked by No Access-Control-Allow-Origin. I've posted more about it here: Google Translate API - No Access Control Origin with Text to Speech The following sources, http://weston.ruter.net/2009/12/12/google-tts/ and Request to Google Text-To-Speech API...

Javascript - Calculate time from the rawOffset Google timezone API

javascript,google-maps,datetime,google-api,google-maps-timezone
I am developing an application to get the local time of city. I am using google Geocode API to get the latitude and longitude of a city and the same is passed to the timezone API. Time Zone API return the following { "dstOffset" : 0, "rawOffset" : 0, "status"...

Set-Cookie with Google HTTP Client Library for Java

java,google-api,google-http-java-client
I just started using the Google HTTP Client Library for Java and I like it a lot. However, I don't know if there's an easy way to handle the case when a server sends header Set-Cookie. I looked through documentation, sample code, and Javadoc and saw nothing, so I started...

Authorization issue with cron crawler inserting data into Google spreadsheet using Google API in Ruby

ruby,cron,google-api,web-crawler,google-api-client
My project is to crawl the certain web data and put them into my Google spreadsheet every morning 9:00. And it has to get the authorization to read & write something. That's why the code below is located at the top. # Google API CLIENT_ID = blah blah CLIENT_SECRET =...

Google Scripts + Google API PHP

php,google-apps-script,google-api,google-apps,google-api-php-client
I am trying to call one of my Google Scripts from my google-api-php-client and I can't find how to do this. I deployed my app as a web app, and I got the web app url which I can call with curl, but I need to call it as my...

How to use nextPageToken in Google Apps Reseller API?

google-api,google-admin-sdk,google-reseller-api
I am writing a simple Java application that fetches all customer subscriptions from Google Apps Reseller using the Reseller API. However I am stuck at paging through the results as the max size is 100 per page and I cannot figure out the next page token. Here is the code...

Data returned by Google Api is not Up-to-date (real-time)

python,google-api,google-analytics-api
I have an account with multiple properties, I'm querying the Google Analytics API to pull Sessions and Pageviews by Hour for each. It's currently 8:45pm PST and I have data through 20th hour (8pm) on three properties, but two other properties only have data through the 13th hour (1pm). All...

How do I get a developer id for google custom search api?

python,google-app-engine,google-api,google-custom-search
I have a GAE app , so I selected : Public Access API Browser (or should I have selected server) *.mysite.appspot.com/*, *.googleapis.com/*, http://localhost:8080/* I make a api call as : from lib.googleapiclient.discovery import build service = build("customsearch", "v1",developerKey="xxxx") But I get error as: "There is a per-IP or per-Referer restriction...

How to access gmail API?

javascript,google-api,gmail-api,vertx.io
I generate my JWT, if my token is correct why dont work ? in Google Developers Console i enabled gmail plus youtube and other API, in credentials generate and download json { "private_key_id": "22dcf", "private_key": "-----BEGIN PRIVATE KEY-----(remove)-----END PRIVATE KEY-----\n", "client_email": "vgfjjc6@developer.gserviceaccount.com", "client_id": "jc6.apps.googleusercontent.com", "type": "service_account" } first generate token...

How to return distance of GoogleAPI search result?

python,google-app-engine,google-api
Here is how I get all items within distance I need: query_string = 'distance(LocationCoord, geopoint(35.2, 40.5)) < 1000' query_options = search.QueryOptions( returned_fields=['ID', 'GUID', 'LocationCoord', '**distance()**'] ) query = search.Query(query_string=query_string, options=query_options) res = index.search(query) How would I actually return what the distance is in the search result?...

Gmail API: Insufficient Permission

php,email,google-api,gmail,gmail-api
THE SITUATION: I am testing the Gmail API for my app. I have tested some requests and they are working fine. For example get messages, get user history, get draft list etc.. Basically all the read only requests are working fine. I have instead some issues related with permission with...