Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

updated path to segments #15

Merged
merged 1 commit into from

2 participants

@eignerchris

once upon a time it looks like the segments resource was accessible from google.com. I discovered it was 404'ing so I updated the #segments method to create a connection to www.googleapis.com before fetching

@eignerchris eignerchris updated path to segments
once upon a time it looks like the segments resource was accessible from google.com. I discovered it was 404'ing so I updated the #segments method to create a connection to www.googleapis.com before fetching the segments resource
911f4e8
@chrisle chrisle merged commit 4adb62f into chrisle:master
@chrisle
Owner

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 31, 2012
  1. @eignerchris

    updated path to segments

    eignerchris authored
    once upon a time it looks like the segments resource was accessible from google.com. I discovered it was 404'ing so I updated the #segments method to create a connection to www.googleapis.com before fetching the segments resource
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/gattica/engine.rb
View
1  lib/gattica/engine.rb
@@ -87,6 +87,7 @@ def accounts
def segments
if @user_segments.nil?
+ create_http_connection('www.googleapis.com')
response = do_http_get("/analytics/v2.4/management/segments?max-results=10000")
xml = Hpricot(response)
@user_segments = xml.search("dxp:segment").collect { |s|
Something went wrong with that request. Please try again.