Questions tagged [google-api]

0

votes
0

answer
3

Views

using google storage and google vision API

I have the follow function that passes a image url to google vision service and returns the letters and numbers (characters) in the image. It works fine with general web urls but I'm calling it to access files stored in Google storage, it doesn't work. How can i get this to work? I've looked at ex...
resolver101
1

votes
1

answer
482

Views

toggling series of google chart on and off by clicking on legend

I have an area chart that has 6 series. I want the user to be able to click on the legend to toggle the visibility of a series. I found this example & have tried including it in my code below but nothing happens. Before adding this code if I clicked on one of the series in the legend the series woul...
mHelpMe
1

votes
1

answer
646

Views

InvalidArgumentException JKS not found sheets API

I am working on an android app that needs to interact with drive/spreadsheets. I was using the google drive for android API, but not only was it way too convoluted to figure out, it never worked right. So I switched to the REST API. I tested the app in plain java before trying to add it to android....
mirGantrophy
1

votes
1

answer
38

Views

Valid authentication credential for Android Management API

I'm learning to work with api and now I try to get a list of devices runing a python script from the console. Client Library for Python installed. sample.py import pprint import sys from apiclient.discovery import build import json api_key = 'AIzaSyBNv8k-zm_TkytbBMJVkR7_wjc' service = build('android...
Jekson
1

votes
1

answer
22

Views

Pay API permission denied

I'd like to validate my in-app purchases. I'm using this receipt validator which by looking at the source code is calling https://www.googleapis.com/androidpublisher/v3/applications//purchases/products//tokens/, here's my code basically copied from the readme $googleClient = new Google_Client(); $go...
php_nub_qq
0

votes
0

answer
6

Views

Add a Review to a Different Business on Google API

I've been reading a lot about Google My Business and it looks very nice but it only has ability to post a review through an API onto our own business. What I'm looking for is a way to post a review to a different business. We have clients who get reviews on our site and we want to have these reviews...
jkushner
1

votes
0

answer
10

Views

Drive Api v3: Changes watch request TeamDriveId being ignored?

I'm trying to specify a Team Drive to watch according to the docs here: https://developers.google.com/drive/api/v3/reference/changes/watch teamDriveId | string | The Team Drive from which changes will be returned. If specified the change IDs will be reflective of the Team Drive; use the combined Tea...
SteveA
8

votes
1

answer
8.1k

Views

How to use CORS to implement JavaScript Google Places API request

I really do NOT understand how I'm supposed to make this work: var requestURL = 'https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=AIzaSyAW4CQp3KxwYkrHFZERfcGSl--rFce4tNw'; console.log(requestURL); $.getJSON( requestURL, function( data ) { // data consol...
Ryan Mc
1

votes
2

answer
2.7k

Views

google api (sheets) Request had insufficient authentication scopes

i want to read an write data from a sheet, reading works fine but writing doesn't. i use all the scopes mentioned in the documentation: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append data_writer(1,1,1) code: from __future__ import print_function from apiclient....
extreme4all
1

votes
1

answer
40

Views

Pubsub Authorization Issue

I've generated a Google Cloud API key without restrictions. I'm passing that to the my topic:publish url as a query parameter, but I'm experiencing an authorization error. { 'error': { 'code': 403, 'message': 'User not authorized to perform this action.', 'status': 'PERMISSION_DENIED' } } I'm unsure...
Bryant Jackson
1

votes
0

answer
93

Views

How to use Google login API in java desktop application

how to login with Google API in java desktop application.I have generated API code and secrete key but i don't have any idea how to use it in java desktop application?
ritu
1

votes
0

answer
116

Views

API Call from App Engine flexible to Firebase FCM failed

API Calls,e.g. to Firebase https://fcm.googleapis.com/fcm/send worked before switching from vm appengine-web.xml to env: flex app.yaml flexible. When deploying with mvn appengine:deploy everything is fine, but when an API call gets fired, which worked before, i get the exception below: Exception in...
quentin qweez
1

votes
1

answer
300

Views

accessing location and activity from same api

val client = GoogleApiClient.Builder(context) .addApi(Awareness.API) .build() client.connect() I am learning google api's where I found Awareness API but when I am importing it in android studio, It displays deprecated. What is alternative way for accessing location and activity from same api. Is i...
Lalit Jadav
1

votes
1

answer
601

Views

get calendar list by using google calendar api through postman

I am currently working with Google Calendar API and try to get calendar list by using postman, but I don't know its standard format. I try to give it the Authorization header. GET /calendar/v3/users/me/calendarList?key=AIzaSyD-a9IF8KKYgoC3cpgS-Al7hLQDbugrDcw HTTP/1.1 Host: www.googleapis.com Content...
Park Jay
1

votes
1

answer
53

Views

using google APIs with python to make folders encountered error

With the help of Tanaike, I can make folders with rest API. But I got error with python code.The error was 'https://www.googleapis.com/drive/v3/files?fields=id&alt=json returned 'Insufficient Permission'>'. Here is my code which I referenced here: #!/usr/bin/python #-*- coding:utf-8 -*- import os im...
shenme gui
1

votes
0

answer
165

Views

Setting orientation for Google Mobile Vision face detector

I trying to get Google Mobile Vision to detect faces from a live camera feed. Since I am processing frames I need to set the orientation. The Google Docs say... The face detector expects images and the faces in them to be in an upright orientation. If you need to rotate the image, pass in orientati...
coder
1

votes
0

answer
33

Views

Localbroadcastmanager not working. Getting latitude and longitude

My app is about getting location in background service. However, it cannot return latitude and longitude. Here is the code. Service side: public class Map extends Service implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener { private static fi...
belllele
1

votes
3

answer
263

Views

Analytics API - multiple accounts

I am trying to implement something like so: There a multiple emails associated with analytics account: [email protected] http://john.com [email protected] http://another.com [email protected] http://foo.com I need to fetch analytics data through API . I am aware about credentials.json when creating app bu...
Hrach Karapetyan
1

votes
1

answer
70

Views

Search via Python Search API timing out intermittently

We have an application that is basically just a form submission for requesting a team drive to be created. It's hosted on Google App Engine. This timeout error is coming from a single field in the form that simply does typeahead for an email address. All of the names on the domain are indexed in the...
David Aulick
1

votes
0

answer
169

Views

Using spreadsheets.values.update method Google API using HTTP Request

I wish to use the following API to update one cell: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/update I was unable to get the API library to work with my package, so I've been using HTTP requests for other situations. Here is a similar approach for this situation:...
Jack Robson
1

votes
1

answer
40

Views

Retrieve gmails which contain “match” in the subject line

I would like to write some javascript which will log in to my gmail, and print the last ten emails which contain the word 'match'. I have attempted, and so far I've gotten the below. Note that the line if ( messages[i].title.indexOf('match') !== -1; ) { doesn't work, but I am not sure how to acces...
Simon Kiely
1

votes
1

answer
174

Views

Google Analytics Management Api Insert Goal: 403 Insufficient permission .net

I got the confirmation Email regarding project whitelisting from Google Analytics team and tried inserting a Goal but got the error. {The service analytics has thrown an exception: Google.GoogleApiException: Google.Apis.Requests.RequestError Your project does not have access to this feature. [403] E...
ayush gupta
1

votes
0

answer
68

Views

Using the directory API to turn off contact sharing for an organisation (G Suite)

Google currently has a global setting to turn on and off contact sharing the directory, which means I cannot turn it off for a specific organisation. In an education environment with staff and students, we do not want students to show up in the global directory, this can be achieved by manually turn...
Sam T
1

votes
1

answer
74

Views

File.list returning limited File resource data

I'm trying to use the google api v2 to retrieve all files in my google drive, I successfully get file list but there's no detail like size, creation date... This is my code: $client = new Google_Client(); $client->setClientId('XXX.apps.googleusercontent.com'); $client->setClientSecret('XXX'); client...
Entretoize
1

votes
0

answer
172

Views

Google Search Console API not returning enough data

https://developers.google.com/webmaster-tools/search-console-api-original/v3/searchanalytics/query Google Analytics tells me ~20k pages were visited from Google search, but the Google Search Console API returns just under 5k urls. Changing startRow doesn't help. What's really odd is I've connected G...
Seán Hayes
1

votes
1

answer
283

Views

Error calling DELETE - (403) Insufficient permissions for this file" | Google Drive API

I have created following code. I have to download files from my Google Drive folder. The folder is shared. After downloading, I have to delete those files from the Google Drive. I tried - $file = $service->parents->delete($file_id,$folder_id); - It doesn't do anything, nor does it give any error. $...
uks.bo.adi.tdg07
1

votes
1

answer
509

Views

Google API v3 checking exist folder by passing folder name

I'm using google API v3 for check exist folder. If folder does not exist, then create the new folder. This is my code for creating folder private void createFolderInDrive() throws IOException { boolean existed = checkExistedFolder('MyFolder'); if (existed = false) { File fileMetadata = new File(); f...
Kranatos
1

votes
0

answer
33

Views

Not Able to upload : Resumable Upload using Google Apis in c#

I can send mail using Resumable upload Google Mail APIs. I don't want to send mail I want to just insert mail in particular folder(label). I tried : I obtained Mail Service using OAUTH2. & get token to create HTTPRequest. First I created POST request as string postUrl = 'https://www.googleapis.com...
Renuka
1

votes
1

answer
233

Views

One or more participants failed to draw() with google dashboard

I tried to implement a google dashboard prototype with a category picker and a pie chart, while displaying the datatable. However, even while following the sample code from the documentation (https://developers.google.com/chart/interactive/docs/gallery/controls#5-create-control-and-chart-instances),...
nilesguo
1

votes
0

answer
507

Views

Google Trends API Contact

Trying to get whitelisted for the Google Trends API via Google API Console Read the resources here: https://docs.google.com/document/d/1Ybu3gHUHtcSXXzgDJ-m7PPto9tw0QG8A5oOBsFP2jao/edit and tried to contact the team via the e-mail address provided E-mail bounced though, so trying to get whitelisted b...
tpchandler
1

votes
0

answer
113

Views

Google Calendar API V3 insert recurring event default timezone

Looks like there is a bit of inconsistency between 2 ways calendar RECURRING events could be created using the TIME ZONE: 'quickAdd' - does not require you to provide a timezone. The Calendar's default (UTC) or the one set by the Calendar owner will be used. Fair enough. 'insert' - the API doc state...
P.Filippov
1

votes
1

answer
283

Views

Get Google Search API PHP with google-api-client

I am trying to get gsc data via -> https://github.com/google/google-api-php-client I am project owner at -> https://developers.google.com/ And restricted user at -> https://www.google.com/webmasters/tools/home?hl=de I've created a service account with the role project owner at https://developers.goo...
Insasse
1

votes
1

answer
122

Views

Youtube Api search returns unexpected results

With this request, I get many results and only the first one is the one I want (it has the search term in the video title): Request: https://www.googleapis.com/youtube/v3/search?key={your_key}&channelId=UCsKrylY2g4-XOkVAQWkpv0g&part=snippet&q=yamatai Result: https://pastebin.com/HR12bt61 But strange...
Nicolas Cadilhac
1

votes
1

answer
92

Views

Google analytics api - bigger date range causes return of less pageviews

I am using the Google Analytics API with the Google PHP Client library to retrieve the total pageviews (and other data) of a story on our site - over different time periods. The stories are identified uniquely by a storyId within the url. However, I am running into a strange scenario. If I use a st...
1

votes
1

answer
328

Views

How to include Google API JSON credentials file in Pyinstaller?

My first question here. I am hobbyist self-learned python. I know this may be a silly question but I can't find any information after many days of searching. I'm making an app to read data in google spreadsheet using Google API and then outputted PDF file with a nice picture of the pre-formatted la...
Harin Yu
1

votes
1

answer
51

Views

Is it mandatory to validate in my server the ID token with Google Sign in?

I implemented a simple web page where Google Sign In let users enter their Gmail and password in order to authenticate; then I made a simple server with Flask using Google Python API. Everything is working fine, but I realized that I made the server before asking myself if I really need it: if I go...
elmazzun
1

votes
1

answer
427

Views

Iterating Google analytics API function on a Pandas Dataframe

I have a Dataframe (f) of inputs: Page Title (title_), Start date ('date_') and End date (date_date), and I want to iterate The Google analytics API get_report function on every row in the DataFrame, to get a new DataFrame of the results. Here is my Code: for i in f.index: lista = [] df = print_resp...
3thman
1

votes
0

answer
44

Views

Accessing Google APIs after react-redux-firebase authentication

I'm using react-redux-firebase for authentication via Google which works fine and I can view my user profile within my components render method via the redux store but I can't seem to access a Google access token to use in my action creators for accessing Google's API's. What's the standard way to...
Sam
1

votes
1

answer
72

Views

Outdated results with management api

I'm building a dashboard that can show me the users for all the Google Analytics account that the user has access to. So far I've been able to retrieve all the users for my accounts but it also lists users that have been deleted in the last 2 months. The users are listed on the restful api and the j...
Joren Van de Vondel
1

votes
1

answer
281

Views

OpenAuth / Google API donet An existing connection was forcibly closed by the remote host

I am using open auth with google api's to authenticate users using .NET. I have been receiving this error on a sever with a high level of requests. On smaller servers there is no issue. I can't find any documentation to help me verify that this is related to sending to many requests. I thought perha...
Drew Fleming

View additional questions