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

google-api-ruby-client not finding classes PKCS12 & JWTAsserter

I am receiving the following errors with the google-api-ruby-client: NameError: uninitialized constant Google::APIClient::PKCS12 NameError: uninitialized constant Google::APIClient::JWTAsserter Here is a synopsis of my code: require…
Bryan Liff
  • 439
  • 3
  • 7
4
votes
0 answers

How can i integrate Gmail API and send email from rails Application?

i want send email from my rails application by integrating the Gmail API(Oauth Authentication). When i check the doucumentation, there is a code available for google drive integration only(https://github.com/googleapis/google-api-ruby-client). But…
4
votes
2 answers

Trying to access GSuite Admin account users gives '401 - Login required'

I have setup a new project to access my GSuite account users. When I run my code it gives 401 - 'Login required'. I have granted 'Domain wide authority' to the account with the required scopes. The code that I am using is: def authorize authorizer…
4
votes
2 answers

Is it possible to add "Other calendar by URL" in google calendar API?

I have been unable to find help on Google Calendar APIreference. I am looking for a resource which makes the same things like option in user interface "Add by URL"( see below). Is it possible to add other calendars by URL through Google Calendar…
4
votes
1 answer

How to set up Google Calendar API using Ruby client for server to server applications

It took me a bit of reading in several locations, as well as looking in Stack Overflow to figure out how to use the Google API Ruby client with Google Calendar in a server to server application without giving the server client full access to all…
4
votes
1 answer

Download a file from Google Drive using google-api-ruby-client

I try to download files from a directory on Google Disk. The code, mostly copied from official quickstart guide, works fine: # ... code from official quickstart tutorial... # Initialize the API service =…
Mikhail Vasin
  • 2,421
  • 1
  • 24
  • 31
4
votes
0 answers

Google Calendar API in Ruby using Service Account

I'm trying to access the Google Calendar API in Ruby using a Service Account (e.g., server-to-server communication). I'm having difficulty finding a good tutorial/example of how to do this. I have created a service account, and downloaded a JSON…
mattnedrich
  • 7,577
  • 9
  • 39
  • 45
4
votes
3 answers

#next_sync_token fo Google Calendar Events always return nil

I created 3 events in Calendar, then I run response = @client.execute!( :api_method => @calendar_api.events.list, :parameters => { :calendarId => "primary", :maxResults => 10, :singleEvents => true, :orderBy =>…
4
votes
1 answer

Export docx to zipped html using google drive API

I am trying to export a docx file to zipped html using Google Drive API (Save as zipped html is one of the feature of google docs). But as per the documentation, supported export mime types are. https://developers.google.com/drive/manage-downloads…
4
votes
2 answers

List of calendar methods Google API ruby client

This is my code: @token = @auth["credentials"]["token"] client = Google::APIClient.new client.authorization.access_token = @token service = client.discovered_api('calendar', 'v3') @result = client.execute( :api_method =>…
Felippe Raposo
  • 431
  • 4
  • 23
4
votes
2 answers

Resumable YouTube Data API v3 uploads using Ruby

I am currently using the google-api-ruby-client to upload videos to Youtube API V3, but I can't find a way of getting the Youtube ID that is created by a resumable upload. The code I am trying to use is along the lines of: media =…
SimpleTouch
  • 158
  • 5
4
votes
1 answer

How do you add a Google Calendar to all users for a domain?

I am having trouble figuring out how to add a calendar to all of a domain's users' CalendarList. So far I can successfully create the Calendar and create a domain wide ACL but I don't know how to insert the calendar into domain users' lists. Using…
4
votes
2 answers

Receiving error 403 in Google Drive API - Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup

I'm using the Google Drive API for ruby, and I'm trying to insert a file into an user drive. I can insert the file with success, but then, when I try to get the file Self Link, this is the URL returned…
4
votes
4 answers

Ruby : File upload to Google drive using google-api-ruby-client SDK failing with Timeout::Error

I am using the google-api-ruby-client in my Rails application to interact with Google Drive. All the basic functions like listing files in a folder, fetching, moving, copying and deleting a file, create new folder, etc are working fine. However…
3
votes
1 answer

google-api-ruby-client: Request serialization results in empty requests

replacement_requests = [ Google::Apis::DocsV1::ReplaceAllTextRequest.new(contains_text: "{{name}}", replace_text: "Joe"), Google::Apis::DocsV1::ReplaceAllTextRequest.new(contains_text: "{{age}}", replace_text: "34"), …
1
2
3
14 15