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

is there a pure command-line oauth flow for installed apps?

I'm trying to get a pure command line oauth flow for an installed app and it's not easy to piece this together... Docs are sorely lacking... I started with the drive example…
TvE
  • 1,016
  • 1
  • 11
  • 19
0
votes
1 answer

Google API Client secrets failing to load issued_at

I'm getting the following error message when I try to do an OAuth2 connection to google. .rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/google-api-client-0.7.1/lib/google/api_client/auth/file_storage.rb:49:in `at': can't convert nil into an exact…
bob
  • 126
  • 9
0
votes
2 answers

Error constructing Gmail API request in Ruby

I'm having troubles sending a draft in Gmail through their API and the documentation doesn't help very much, especially since I'm working with Ruby. I can create a draft without any issue, but then when I try to send the newly created draft, I get…
Kevin
  • 301
  • 2
  • 13
0
votes
1 answer

create more strict google api endpoint authentication

I've created an app on Google App Engine and now I'm moving on to security. I would like to lock it down to only a few Ruby clients. I can't seem to find anywhere that explains securing your endpoints for non iOS/Android/JavaScript files. I would…
0
votes
1 answer

Google+ Domains API via service account fails with 403 Forbidden

I have a simple Ruby code that I combined from several examples. It uses Google+ Domain API. I followed all steps to authorize a service account (https://developers.google.com/+/domains/authentication/delegation), but my requests fail with 403…
0
votes
1 answer

How to use the result of Custom Search API of Google API Ruby Client

I have this piece of code require 'google/api_client' require 'google/api_client/client_secrets' require 'google/api_client/auth/installed_app' search_client = Google::APIClient.new( :application_name => 'Application' ) google_search =…
Minh Triet
  • 1,190
  • 1
  • 15
  • 35
0
votes
1 answer

uploading via google api from remote url

I'm trying to upload a file to via Google ruby API client. This works media = Google::APIClient::UploadIO.new('test.jpg', 'image/jpeg') but this does not work media = Google::APIClient::UploadIO.new('http://www.somedomain.com/test.jpg',…
Darren Cato
  • 1,382
  • 16
  • 22
0
votes
1 answer

Google Site Verification via API Key

We have tried various things to get the Google Site Verification API to work, including: How can I authorize with OAuth 2.0 for google's predictive API in Ruby? By calling: https://developers.google.com/site-verification/v1/webResource/list using…
0
votes
2 answers

How do I pass in the 'hd' option for OpenID Connect (Oauth2 Login) using the Google Ruby API Client?

The "Using Oauth 2.0 for Login" doc lists the 'hosted domain' parameter as a valid authentication parameter, but using the Google API Client for Ruby linked at the bottom I don't see how to pass it along with my request. Anyone have an example?
salmonthefish
  • 93
  • 1
  • 6
0
votes
1 answer

omniauth with omniauth-google-oauth2 or google-api-ruby-client?

If a web application just needs to authenticate users with a google account with omniauth, in other words, users can just login with their google account. What's the best choice to choose between the two gems: omniauth-google-oauth2 or…
canoe
  • 1,273
  • 13
  • 29
0
votes
1 answer

How to specify a login_hint parameter

I read the Google Oauth2 documentation and it seems that I can send a login_hint parameter as part of the authorization request, similar to specifying access_type. I am using an offline access_type for a web server application (Rails application). I…
Xaid
  • 359
  • 1
  • 7
0
votes
1 answer

Transferring ownership of a specific Google Doc file using google-api-ruby-client

I'm looking to transfer ownership of a specific Google Docs file using the Google Apps API. There are many accounts on a single Google Apps domain. There are many files I would like to transfer so I do not want to do it manually. In the UI I've only…
johnsorrentino
  • 2,731
  • 1
  • 16
  • 21
0
votes
1 answer

Google API Ruby Client - single user with OAuth 2.0

the goal is to have one Google (YouTube) account for the web app. Users of the web app will be able to upload videos via this account to the one YouTube channel. After many hours im in the ends. I've found plenty of samples how to implement for…
Nikos
  • 515
  • 1
  • 4
  • 16
0
votes
1 answer

Undefined method 'dateTime' for Google::ApiClient

Im working on a sinatra based application, in which I get events from a google calendar and display all events as a list. However I have encountered an unusual error when I tried to get the start and end dates of All day events. Since all day events…
Joshi
  • 15
  • 5
0
votes
1 answer

Google Drive Sharing Folders

I'm trying to share a folder from a Ruby script using the following code: def insert_file_permission(file_id, email) drive = $client.discovered_api('drive', 'v2') new_permission = drive.permissions.insert.request_schema.new({ 'value' =>…
JRQ
  • 545
  • 4
  • 17
1 2 3
14
15