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
1
vote
2 answers

Google API Client Rails

I'm using the google-api-client client gem for ruby and getting a 403 Access Not Configured error whenever I call the API. require 'google/api_client' client = Google::APIClient.new client.authorization = nil search =…
user749798
  • 5,210
  • 10
  • 51
  • 85
1
vote
1 answer

Install of Google-api-client Ruby fails on OSX Mountain Lion (localmemcache)

Trying to install Google-api-client for Ruby on Mountain Lion fails due to localmemcache gem (I think).. Here is what happens: Building native extensions. This could take a while... ERROR: Error installing localmemcache: ERROR: Failed to build…
Stpn
  • 6,202
  • 7
  • 47
  • 94
0
votes
1 answer

Ruby authentication to access Google sheets after OOB ban

I can't understand how to access to sheets after OOB deprecation. Here https://github.com/googleapis/google-cloud-ruby#authentication there is no example and the sample project, Quickstart, https://developers.google.com/sheets/api/quickstart/python…
0
votes
0 answers

Rails Google Analytics filter not equal

I am looking to add filters to my GA UA api request. Using equals works as expected 'ga:keyword==(not provided),ga:keyword==(not set)' this will return the expected result Not equals does not work 'ga:keyword!=(not provided),ga:keyword!=(not set)'…
0
votes
1 answer

Ruby require - cannot load such file -- google/api_client

I'm trying to write a ruby script to upload youtube videos, but I can't get past this line: require 'google/api_client' I get this error: `require': cannot load such file -- google/api_client (LoadError) I am running ruby 3.2.1. In gem list I see…
soleil
  • 12,133
  • 33
  • 112
  • 183
0
votes
0 answers

google_drive library no longer provides the default credential due to a limitation of Google API (ArgumentError)

we are writing our data to the google sheets and uploading them to google drive using the google_drive API. we are creating session through this command in ruby @session = GoogleDrive::Session.from_config("config.json") all client_id,secret_id,…
0
votes
1 answer

How to upload a file to a shared drive with Google API Drive v3 ruby gem

I am trying to upload a file to a shared drive, however; if I set my drive_id in the options parameters, it still used my default drive, which is "My Drive". What am I doing wrong? (The drive_id is just an example) google_file =…
0
votes
1 answer

Google Service Account doesn't have permission to create folder

In Google Cloud Platform, I created a project. Then I enabled Google Drive API for that project. Then I created a service account. I was able to upload file to Google Drive with that service account successfully. But when I tried to create a folder…
0
votes
1 answer

YouTube Data API v3 update_video fails with ArgumentError

Problem Using the google-apis-youtube_v3 gem I can upload a video, delete a video, insert captions, delete captions, and set a thumbnail image. The only thing that that for some reason does not work is the update_video call, which always returns an…
EK0
  • 305
  • 5
  • 16
0
votes
1 answer

Ruby YouTube Data API v3 insert caption always returns error

I am trying to use the Ruby SDK to upload videos to YouTube automatically. Inserting a video, deleting a video, and setting the thumbnail for a video works fine, but for some reason trying to add captions results in an invalid metadata client error…
0
votes
0 answers

How do I refresh my google_oauth2 access token and refresh token?

I have an app that uses the Google Calendar API and I seem to have a corrupt/defunct access token and/or refresh token which is resulting in the following error: Signet::AuthorizationError Authorization failed. Server message: { "error":…
sledge_909
  • 457
  • 1
  • 5
  • 9
0
votes
1 answer

Every error in the book from google-api-ruby-client but no data

I have been attempting to work on a request from my boss this week that requires using the google admin directory api. At this point I am questioning if what I am trying to do is even possible. Can I retrieve data from the scope…
0
votes
1 answer

After create user by firebase authentication, is there a way to generate email verification link and send it to the user?

Below is code to create user by firebase authentication. require 'google/apis/identitytoolkit_v3' service_account = "./firebase-auth.json" service = Google::Apis::IdentitytoolkitV3::IdentityToolkitService.new service.authorization =…
0
votes
1 answer

How can I store Google API Credentials using Rails Secrets?

This question is similar to How can I authorize a Google Service Account without the default credentials file? but specifically about how to use Rails' built in secrets/credentials functionality. I realise it needs to be JSON but when I store…
Matthew
  • 1,300
  • 12
  • 30
0
votes
0 answers

People API: Cannot overcome error: rateLimitExceeded: Resource has been exhausted

I'm using Google API Client (ruby) to access the People API and create/update my Google Contacts. I've successfully authenticated using a OAuth 2.0 flow, and have managed to use the API's methods to create new contacts. It's been a few days that…