google-api

GA Management API - Custom Dimensions list() - Error 403: Insufficient Permission

若如初见. 提交于 2019-12-24 23:24:06
问题 I'm using Management API (using PY Client Library) to get list of Custom Dimensions as described here - Custom Dimensions: list link = analytics.management().customDimensions().list(accountId = ACCOUNT_ID, webPropertyId = PROPERTY_ID) dimensions = link.execute() but the API keeps returning Error Code: 403, Insufficient Permission I'm pretty sure the service account email address I'm using to build credentials object has sufficient Edit, Read & Analyse level access at the GA Account Level!. I

Getting own data off Google Photos API (Authentication and requests)

北城余情 提交于 2019-12-24 22:33:33
问题 I'm a bit new to using APIs and React and to test it out I'm writing a project that includes getting my own media (or just the URLs of each image) off of a specific album I have on Google Photos. The aim is that the project will post any photos I take (and put in this album) onto a site with react. Since I only want my own data and I don't want any information/authentication from other users I can't just have a sign in as most of the google photos documentation suggests (it would just get

Google Drive API not downloading FIles (Java v3)

南楼画角 提交于 2019-12-24 21:09:44
问题 I'm using the code from here: https://developers.google.com/drive/api/v3/manage-downloads#downloading_a_file The code snippet I'm using is the following and placed in the main method: String fileId = "some file ID"; OutputStream outputStream = new ByteArrayOutputStream(); driveService.files().get(fileId) .executeMediaAndDownloadTo(outputStream); I have found no sign of the code actually downloading the file, nor do I know where the file is IF it actually downloads. I'm not sure if I am using

Invalid Signature - Google JWT API

谁说胖子不能爱 提交于 2019-12-24 20:45:41
问题 I'm trying to sign a request for Google 0Auth2 (in PHP) Here's my code: $jwtHeader = $this->base64url_encode(json_encode(array( "alg" => "RS256", "typ" => "JWT" ))); $now = time(); $jwtClaim = $this->base64url_encode(json_encode(array( "iss" => "xxxxxxxxxxxxxxx.xxx.gserviceaccount.com", "scope" => "https://www.googleapis.com/auth/prediction", "aud" => "https://www.googleapis.com/oauth2/v4/token", "iat" => $now, "exp" => $now + 3600, ))); $sign = hash_hmac('SHA256', $jwtHeader.".".$jwtClaim,

Exporting Google Cloud Storage files to Google Drive

此生再无相见时 提交于 2019-12-24 20:32:57
问题 Is there a way to export Google Cloud Storage files to Google Drive using Python? I was doing the Google Dataflow tutorial using the Google Shell, which is basically a single apache_beam command. I noticed that the command takes an output destination which is a Google Storage location. I wanted to know if, after the command is run, does Google provide a way to take the output and export it to Google Drive. 回答1: Google does not have any mechanism in place for developers to allow for movement

Is Google Contacts API still available?

无人久伴 提交于 2019-12-24 18:59:48
问题 I am using Google's People API to fetch contacts associated with my contacts in Google. However, as has been pointed out elsewhere, that API does not access "Other contacts" which are available at https://contacts.google.com/other. I'm looking for an API that will allow me to access that data. I tried the Contacts API per the instructions at https://developers.google.com/contacts/v3/ which says: To retrieve all of a user's contacts, send an authorized GET request to the following URL: https:/

Android giving IOException with 'unable to create directory: /tokens' when using google calendar api

≡放荡痞女 提交于 2019-12-24 18:11:34
问题 Trying to implement the Calendar Quickstart API into Android but when I declare tokens as demonstrated. private final String TOKENS_DIRECTORY_PATH = "tokens"; That String is then used in the builder GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder( HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES) .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH))) .setAccessType("offline") .build(); But Android returns this error when setting

Google OAuth consent screen not showing scope options

那年仲夏 提交于 2019-12-24 17:54:56
问题 I am trying to set up the Google OAuth keys inside the Google developer console with the right privileges for my project. In a different project I am able to go to Credentials/OAuth consent screen and select from list of scopes. However, with my current project those options are missing. Both projects use the same set of Google APIs. I do not remember doing anything special with the one where the scope options are present, but apparently I am missing some vital settings. Any help will be

401 (Unauthorized) Error with DotNetOpenAuth and Google Calendar

我的梦境 提交于 2019-12-24 16:25:17
问题 I've been tinkering for a while now with getting the Google Calendar API working with DotNetOpenAuth. I've tried going about it in a few different ways, and I keep running up against the following error: The remote server returned an error: (401) Unauthorized. I've tried it both by using the CalendarService in the Google Data API for .NET, and by adapting the Google Contacts sample in the DotNetOpenAuth samples project. When I tried using the CalendarService, I set up my service for

using nokogiri to parse google picasa api xml - namespacing issue?

烂漫一生 提交于 2019-12-24 15:56:41
问题 I am trying to get some data from some google picasa xml, and am having a bit of trouble.. Here is the actual xml (containing just one entry): http://pastie.org/1736008 Basically, I would like to collect a few of the gphoto attributes, so ideally what I would like to do is: doc.xpath('//entry').map do |entry| {:id => entry.children['gphoto:id'], :thumb => entry.children['gphoto:thumbnail'], :name => entry.children['gphoto:name'], :count => entry.children['gphoto:numphotos']} end However, this