Questions tagged [google-api-ruby-client]

The Google API Ruby Client makes it trivial to discover and access Google APIs.

Status: This library is currently alpha and under active development.

google-api-ruby-client is a client library for accessing Google Cloud Platform services that significantly reduces the boilerplate code you have to write. The library provides high-level API abstractions so they're easier to understand.

google-api-ruby-client is configured to access Google Cloud Platform services and authorize (OAuth 2.0) automatically on your behalf provided proper environment setup. Better yet, if you are running on a Google Compute Engine instance, no additional setup is needed!

More information

222 questions
0
votes
1 answer

Get Gmail User Profile Picture and Name with Google API client

The Google API client has Class: Google::Apis::PeopleV1::Name and Google::Apis::PeopleV1::Photo how do I hit these endpoints? I tried p = Google::Apis::PeopleV1::Photo.new response = p.url But it returns nil. Opposed to this GmailService has…
Masroor
  • 1,484
  • 3
  • 14
  • 23
0
votes
1 answer

OAuth2: RuntimeError: A refresh_token is not available

I use OAuth2::Client for get access_token. Need refresh it with refresh_token client_id = '95585XXXXXXXoogleercontent.com' secret_key = 'R10Ze490IYa' client = OAuth2::Client.new(client_id, secret_key, { authorize_url:…
mpz
  • 1,906
  • 3
  • 15
  • 23
0
votes
0 answers

Google API for Ruby: Getting "rate-limited" without exceeding limit?

I am using Google API library for Ruby to read data. The access is restricted to the IP addresses I use. The API is restricted to two endpoints. The rate usage in the console says I am at 8% of the quota limit. However, since last week (when I did…
0
votes
1 answer

GMail API Stopped working with Ruby client since April 11

Was any breaking change made by Google on GMail API on 11th April, 2020 ? We have a ruby web application which also has a Chrome extension. (pretty old, ruby 2.1.0) which uses google-api-client version 0.6.4 and was working great so far, but then…
indevruby
  • 49
  • 1
  • 1
  • 2
0
votes
1 answer

How to use auth token in Google API (Ruby) WebmastersV3 (service account access)

I cannot connect the two pieces together: I am able to authenticate my service account and I know how to form the request for the information I need to retrieve from the API, but I cannot figure out how to make that request authenticated with the…
0
votes
1 answer

How can I make transfers using Google Data Transfer API in Ruby

I'm writing a piece of code in Ruby for making data transfers using Google Data Transfer API. I specifically mean this The code I have is as follows: idOldUser = "116170568974079979335" idNewUser = "105318746921076261308" atp =…
0
votes
0 answers

Google Drive API returns 500 Internal Server Error when exporting large documents

I was trying to export(programmatically download from google drive) a slides document that is larger than 10MB in PDF format and encountered Error - #. I am using Google API ruby client and there is no…
zzlyn
  • 85
  • 1
  • 3
  • 9
0
votes
1 answer

google-api-ruby-client setting wrong event start and end time

I using the google-api-ruby-client to update an event. When I provide a start and end datetime with a time zone of "EUROPE/LONDON", the event is successfully saved but returns an event whose start and end time is in the Pacific time zone with an…
brg
  • 3,915
  • 8
  • 37
  • 66
0
votes
1 answer

Unable to upload and image in googledrive using goolge ruby API

I am first time using Google APIs. I am unable to upload any file in Google Drive. I tried below complete code. require 'google/apis/drive_v2' require 'google/api_client/client_secrets' # I downloaded 'client_secrets.json' file from…
0
votes
0 answers

Creating spreadsheets with Google Spreadsheet api gem - is there a better way than using hashes?

I'm following the google guide and want to create a spreadsheet with populated cells. I've played with API Explorer and got the following working request body: { "sheets": [ { "data": [ { "startRow": 0, …
Szymon Borucki
  • 407
  • 4
  • 13
0
votes
0 answers

Sheets API v4 is returning 503 Unavailable

I'm using the Google API Ruby client to do 4 things: Access my drive Create a new spreadsheet Update cells in the the spreadsheet Get cells with calculated results from same spreadsheet I'm able to successfully achieve the first 3 items listed…
0
votes
0 answers

continuous call for Google Prediction API gives response 'Undefined'

In my application I have been calling google prediction API continuously for an array(size: 4000 aprox) of strings. I observed that after some api calls it gives response as Undefined, it continues for some api calls and then it gives response fine.…
0
votes
1 answer

Rails google api client load P12/JSON file method

Following a sample which is here: https://gist.github.com/joost/5344705 The latest version of the google-api-client gem throws an error on: key = Google::APIClient::PKCS12.load_key(key_file, 'notasecret') #=> Uninitialized constant…
0
votes
0 answers

Google API(ruby) causing gem conflict errors

I'm getting the following error when trying to run a cucumber script: Unable to activate google-api-client-0.9.12, because httpclient-2.6.0.1 conflicts with httpclient (~> 2.7) (Gem::ConflictError) I have three versions of httpclient: httpclient…
R. Leverette
  • 1
  • 1
  • 1
0
votes
0 answers

Creating email drafts using Gmail API on Ruby (google-api-ruby-client 0.9)

I am currently trying out Ruby and the Google API for Ruby and I am having difficulties accessing my Gmail account and creating drafts with it (via create_user_draft) using a Service Account. I have successfully authenticated my Service Account with…