Sha256: 02f4eca75f0c97de532d2dca64d7d833c63537383f95598a4bab12dcccad700d
Contents?: true
Size: 514 Bytes
Versions: 4
Compression:
Stored size: 514 Bytes
Contents
module LazyGoogleAnalytics class Auth attr_accessor :analytics, :client def initialize config = LazyGoogleAnalytics::Config @key = Google::APIClient::PKCS12.load_key(config.key_file, config.pass_phrase) @asserter = Google::APIClient::JWTAsserter.new( config.email, config.scope, @key) end def authorize @client = Google::APIClient.new() @client.authorization = @asserter.authorize() @analytics = @client.discovered_api("analytics",'v3') end end end
Version data entries
4 entries across 4 versions & 1 rubygems