Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

add simple code for google analytics client. #7

Merged
merged 1 commit into from

2 participants

@tdtds

supported Google Analytics.

@tokumine tokumine merged commit 6de534f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 5, 2012
  1. @tdtds
This page is out of date. Refresh to see the latest.
View
1  gdata_19.gemspec
@@ -233,6 +233,7 @@ Gem::Specification.new do |s|
"lib/gdata/auth/authsub.rb",
"lib/gdata/auth/clientlogin.rb",
"lib/gdata/client.rb",
+ "lib/gdata/client/analytics.rb",
"lib/gdata/client/apps.rb",
"lib/gdata/client/base.rb",
"lib/gdata/client/blogger.rb",
View
1  lib/gdata/client.rb
@@ -15,6 +15,7 @@
require 'gdata/client/base'
require 'gdata/client/apps'
+require 'gdata/client/analytics'
require 'gdata/client/blogger'
require 'gdata/client/booksearch'
require 'gdata/client/calendar'
View
29 lib/gdata/client/analytics.rb
@@ -0,0 +1,29 @@
+# encoding: UTF-8
+# Copyright (C) 2008 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+module GData
+ module Client
+
+ # Client class to wrap working with the Analytics API.
+ class Analytics < Base
+
+ def initialize(options = {})
+ options[:clientlogin_service] ||= 'analytics'
+ options[:authsub_scope] ||= 'https://www.google.com/analytics/feeds/'
+ super(options)
+ end
+ end
+ end
+end
Something went wrong with that request. Please try again.