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
16
votes
3 answers

How can I authorize a Google Service Account without the default credentials file?

I have a Google Service Account that my app uses to retrieve data from Google Analytics. When I created the account I downloaded a client_secrets file with all the necessary information for authorization via OAuth, and I recorded the path to this…
djb
  • 5,591
  • 5
  • 41
  • 47
13
votes
3 answers

With Google API Client, how to create client

I'm working to use the Google API Client: https://github.com/google/google-api-ruby-client Specifically, I want to access Google Contacts via the Google API client using the following google_contacts_api.rb:…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
9
votes
0 answers

Fail to upload apk to beta track. Google Api Error: releaseToHaltNotFound: Cannot halt release, no matching in progress release found

I am using fastlane to upload apks to google play beta track. I have multiple apks for different countries with different package names. A few days ago, it failed to upload one of my apk. Fastlane log: [13:54:31]: WARNING: fastlane requires your…
9
votes
0 answers

Getting google dev_acc id programmatically

Given that a user (Google Play's account owner) already authenticated my application (Google App Engine's service account) with the correct scopes... Is there an endpoint in google API that returns the dev_acc parameter used to access their play…
9
votes
3 answers

Google Oauth SSL error - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

I'm developing rails app with social authorization. Facebook and Twitter logins works fine, but something strange is going with Google... My initializer for google: provider :google_oauth2, OAUTH_CONFIG[:google_api_key],…
9
votes
2 answers

YouTube API v3 with OAuth2: update and delete fail with "Insufficient Permission" error

I am trying to update and delete videos using the YouTube API v3 with OAuth2 for authentication via the google-api-client (0.6.4) Ruby gem. However, when I attempt to execute either of these two actions, I see the following error…
GladstoneKeep
  • 3,832
  • 2
  • 26
  • 38
7
votes
2 answers

How to authorize the google-api-ruby-client?

I'm working to get the google-api-ruby-client gem working following the basic usage example here: Basic usage require 'google/apis/drive_v2' Drive = Google::Apis::DriveV2 # Alias the module drive = Drive::DriveService.new drive.authorization = ...…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
6
votes
2 answers

Sending an email with ruby gmail api v0.9

Does anyone have a simple example as to how to send an email from scratch with the v0.9 API. simply want an example of sending the following: m = Mail.new( to: "test1@test.com", from: "test2@test.com", subject: "Test Subject", body:"Test…
Carpela
  • 2,155
  • 1
  • 24
  • 55
6
votes
2 answers

Mocking methods in google ruby api client

I am trying to mock some methods that use the google-api-ruby-client to make some testing without actually calling the api. Authentication and client and activities methods are taken from the example found on the github page (see link above), which…
Chris Bird
  • 61
  • 1
  • 2
5
votes
2 answers

Rails: Send email using Gmail API with attachment return only encoded file not

I am trying to send an email using gmail API. My Ruby code as you can see below works well without an attachment: client = google_client user_id token = Token.find_by_user_id(user_id) access_token = token.access_token gmail =…
5
votes
1 answer

Google Calendar API V3 insert_calendar returns 503, but calendar was inserted successfully

I'm running into an issue where I send an insert_calendar request to Google Calendar API V3, and I get back the following response: Sending HTTP post https://www.googleapis.com/calendar/v3/calendars? 503 #
zkwentz
  • 1,095
  • 5
  • 22
  • 44
5
votes
1 answer

Send gmail messages with google-api-ruby-client '0.9.pre3'

Working through sending gmail with the newer google-api-ruby-client in a rails 4 application. require 'google/apis/gmail_v1' Gmail = Google::Apis::GmailV1 class MailService def initialize(params) @params = params end def call …
RangerRanger
  • 2,455
  • 2
  • 16
  • 36
5
votes
0 answers

NameError: uninitialized constant Faraday::FlatParamsEncoder

I am using google_drive gem that depends on google-api-client and the gem versions are: google_drive (1.0.1) google-api-client (0.7.1) faraday (0.8.9) faraday_middleware (0.9.0) Now, on using GoogleDrive: session =…
5
votes
1 answer

How do I add an IPv6 address to Google API Credentials?

I have a Ruby app in development that uses the Google API (custom search engine). It's been working great with the Public API access key. I just upgraded my internet to Uverse and suddently the Google API stopped working. I figured out the issue was…
5
votes
1 answer

How to create a user with the Admin Directory api using the google-api-ruby-client?

I've been trying a few combinations but can't seem to come up with something that works. More information about the API I'm asking about can be found here https://developers.google.com/admin-sdk/directory/v1/reference/users/insert . I have a feeling…
James Woodward
  • 413
  • 2
  • 6
1
2 3
14 15