Skip to content

Instantly share code, notes, and snippets.

Tom Harrison tomharrisonjr

Block or report user

Report or block tomharrisonjr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tomharrisonjr
tomharrisonjr / google_api.rb
Created Aug 30, 2012
Example Ruby on Rails library for Google API, Google Analytics Network (GAN), events/list API, as well as others using Installed Applications approach
View google_api.rb
module GoogleApi
# Inspired by http://www.ericnagel.com/how-to-tips/google-affiliate-network-api.html
require 'rest-client'
require 'active_support'
# Google Affiliate Network
class GAN
# These values obtained from https://code.google.com/apis/console, creating a client ID for Installed Applications
CLIENT_ID = '<your-value>.apps.googleusercontent.com'
CLIENT_SECRET = '<your-value>'
You can’t perform that action at this time.