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
1 answer

Can't impersonate on a service-to-service oauth request to google calendar api in ruby

Hi I was late night hacking and testing google api client for Ruby. I fell in an error perhaps by missunderstanding. What I already done I already created an app in google developer console I enabled the calendar api I created the Server Key and…
theist
  • 3,270
  • 2
  • 22
  • 23
1
vote
0 answers

Email Migration API v2. Multipart insert returns 503

I testing Email Migration API V2 with google client api for ruby version 0.7.1 For multipart upload I always getting this response from server: { "error": { "errors": [ { "domain": "global", "reason": "backendError", "message":…
1
vote
2 answers

Creating draft via Google Gmail API

I am trying to create a draft message for a logged in user but keep getting the error Missing draft message when I run the below require 'google/api_client' client = Google::APIClient.new client.authorization.client_id =…
barnett
  • 1,572
  • 2
  • 13
  • 25
1
vote
1 answer

add calendar to another user's calendar list

Not sure if this is possible or if anyone has managed to do this. I have user with super admin access, with which I can create a new user for my domain. However I also want to add a couple of calenders to the created user's calendar list. When I…
1
vote
0 answers

google-api-ruby-client The current user has insufficient permissions to perform the requested operation

I am using the google-api-ruby-clientgoogle-api-ruby-client for my backend server to validate the android inapppurchase code (see below): require 'google/api_client' require 'google/api_client/client_secrets' require…
1
vote
1 answer

Google Analytics dailyUploads not working with using google-api-ruby-client

I am using the google-api-ruby-client v0.7.1, ruby 2.1. When I upload Custom Data Sources through Google Analytics API v3 with Google Analytics API v3 > analytics.management.dailyUploads.upload : Request POST https:…
1
vote
2 answers

Sharing google oauth verification code between android client and rails server

I'm trying to setup a sign in via google+ within our mobile app. So we have a Android client that fetchs a verification code for the oauth google api. It then sends the verification_code back to rails and rails is responsible for getting the access…
Paté
  • 1,914
  • 2
  • 22
  • 33
1
vote
1 answer

Google Maps Coordinate API client authenticates okay but returns 403 forbidden when executed

I've been following all (and sometimes conflicting) documentations I could find but nothing worked for me so I hope I get some answers by someone in the know. Many thanks in advance. I have a trial Google Maps Coordinate account that works well in…
1
vote
1 answer

How to pass keyfile as argument in Rails project

I'm using the bigQuery gem in my project. I initialize it with options client_id, service_email, key, project_id, and dataset. I have my .p12 file from Google that I want to pass in but I'm not sure where to put the file in my Rails project - I…
user1436111
  • 2,111
  • 7
  • 24
  • 41
1
vote
1 answer

Google CalendarList API colors

I can't seem to get the color settings for adding a calendar to be subscribed to and visible to a user. I'm setting the values for foregroundColor and backgroundColor as well as setting the colorRgbFormat to true, but the color always comes up blue…
JRQ
  • 545
  • 4
  • 17
1
vote
1 answer

How to download Google Apps Script?

I'm currently writing a little Ruby script to sync my Google Apps Script files. I'm mainly following the instructions from the Google Developers and the examples on Github (google/google-api-ruby-client-samples). After getting the list of project…
1
vote
1 answer

google-api-client gem, fetch_access_token! - "Invalid Request"

Following is what I am trying to do - client = Google::APIClient.new client.authorization.client_id = 'XXXX' client.authorization.client_secret = 'XXXXX' client.authorization.scope =…
1
vote
0 answers

Using "media" uploadType in Ruby Google Cloud Storage API

I'm in the process of writing up some sample code, and I'm having some trouble getting the "media" uploadType option to work correctly. I'm learning both Ruby and the APIs at the same time, so bear with me - but this (and several slight variations)…
Zach Wilt
  • 436
  • 2
  • 6
1
vote
1 answer

Batch request for youtube playlist_items.delete always failed

I have provided "id", but it always return the error that "Required parameter: id" BTW, if I use normal request (i.e. non-batch), then the same code :api_method => yt.playlist_items.delete, :parameters => {:id => ids[0]} will success without…
lazywei
  • 11,955
  • 5
  • 20
  • 25
1
vote
1 answer

How do I set permissions on a file that was created using files.insert with a Web Service OAuth credential?

I did authentication with the following code: key = Google::APIClient::KeyUtils.load_from_pkcs12(path_to_key_file, 'notasecret') @client.authorization = Signet::OAuth2::Client.new( :token_credential_uri =>…
Steve Wilhelm
  • 6,200
  • 2
  • 32
  • 36