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
0 answers

Google Drive Ruby Client Returning Different Responses

So I'm working with the Google-Drive-Ruby-Client API to export some data into spreadsheets. The problem is, when I'm trying to get the exportLink to download the spreadsheets into a CSV format, what I'm getting as a response in the Google API…
Bill L
  • 2,576
  • 4
  • 28
  • 55
0
votes
1 answer

Can't find Google API Gem

Sorry, I'm new to Ruby so this may be a dumb question to ask, I'm sure I'm missing something. I'm trying to use a 3rd party library for Google Drive access. When using it, I need to require google/api_client, which I assume is the google-api-client…
Bill L
  • 2,576
  • 4
  • 28
  • 55
0
votes
2 answers

Get file list from google drive public folder shared by link via API

I'm trying to create script to download all files from another user shared folder in google drive using rest api. If i'm right, there are two variants: Using drive.children.list, with folder ID Using drive.files.list, with search query like…
0
votes
1 answer

Getting 'undefined method batch' for Google Directory API with service account

So I'm writing a script to batch delete users from a Google Apps for Education domain. The code looks like this: #! /usr/bin/env ruby require 'google/api_client' require 'csv' service_account_email = 'XXXXXXX@developer.gserviceaccount.com' key_file…
user5153034
0
votes
1 answer

Trying to get a service account to work with google calendar API, ruby, calendar.insert_event error

So I've got this Ruby on rails app going, I have it set up with a service account to do server to server requests for the google calendar API. I have got the calendar object which has methods that include insert_event. class CalendarController <…
0
votes
1 answer

Google Oauth Authorization failure

I am trying to use the 'google-api-ruby-client' gem in a rails app to be able to request a user for access to their Google Drive. I am successfully navigating to the request permissions page where a user clicks accept. I have a callback function in…
0
votes
1 answer

Rails 4: Creating Google Calendar event

I'm trying to insert Google Calendar events as illustrated here. If I send the request with values hardcoded like the example it works fine: event = {'summary' => 'Summary', 'location' => 'Location', 'start' => { 'dateTime' =>…
0
votes
1 answer

Webmaster API v3: getting servingLimitExceeded using batch requests

I'm getting the servingLimitExceeded error message for results within batch but not for an entire batch. For example, I may get 100 records responding with this error and then it starts returning more results. All within the a single batch. If…
jwadsack
  • 5,708
  • 2
  • 40
  • 50
0
votes
1 answer

Migrate from Google Provisioning API to Directory API in Rails Application

I am currently maintaing a Rails application that relies on the Google Provisioning API. Unfortunately, this API is being phased out soon and replaced by the Admin SDK and Directory APIs. It uses a username and password combination to login to the…
0
votes
1 answer

google calendar sync token expire

hi i am trying to sync google calendar with my local calendar my current setup works like this i login via google and get my primary calendar events and store locally and i also save the sync token google provide at the last page. so i have…
0
votes
1 answer

Google Custom search api discrepancy in result

I am first trying the standard web search, image below, which returns 476 results I have the custom Google ruby api client and have the custom search engine and api key setup. This is my query client = Google::APIClient.new(application_name:…
AnkitG
  • 6,438
  • 7
  • 44
  • 72
0
votes
0 answers

Google calendar API push notifications - update from API creates unnecessary notification

I have a rails app using Google calendar API with push notifications for each calendar the user shares with my app. when user updates an event from app, it creates an updatedEvent request to API. because the calendar is listed to push notification,…
0
votes
0 answers

Faking google api client login

After much struggle I finally got a hybrid flow to work for my login using the Google Api Ruby Client. Now I started to verify that my login still works as it used to do when I used OpenId. However, all my tests that fake a login with OpenId have…
Morten
  • 4,507
  • 7
  • 29
  • 31
0
votes
1 answer

Ruby google storage API change SHARED PUBLICLY

I have a question regarding ruby google API. I was trying to use Google storage to host images. I want to make every user to be able to read the images. So far I can connect to google cloud storage and upload an image to Storage. However, I cannot…
0
votes
2 answers

google api ruby client next_page_token and next_page method doesn't work

I'm using the API for Custom Search Engine for Ruby from Google. This is how I set the API after call Google::APIClient.new: response = client.execute( :api_method => search.cse.list, :application_name => 'my_app', …
MonkTools
  • 45
  • 1
  • 4