Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation issue plus #9

Open
Rockyyost opened this issue Apr 3, 2012 · 1 comment
Open

Segmentation issue plus #9

Rockyyost opened this issue Apr 3, 2012 · 1 comment

Comments

@Rockyyost
Copy link

I just updated to the latest version of the gem, now when I try to pull the list of segments I get the following error:

"The requested URL /analytics/v2.4/management/segments was not found on this server. That’s all we know."

I have no idea why, I looked through the code and the Google Docs for the API, which states that /analytics/v2.4/management/segments is the URL.

Also, another strage thing happens, when I pull data from the API (such as a report) I have to alter your code to make it work, but I don't know why. It should work just as you've written it. Below is the example:

for the do_http_get method:
I update:
response, data = @http.get(query_string, @headers)

to:
response = @http.get(query_string, @headers)
data = response.body

Splitting up the code make it work, otherwise data is nil. Again, it should work from my understanding of Ruby, but for some reason it's not. I have the latest version of ruby.

Thanks for your help, this is truly an awesome gem!!!

@drush
Copy link

drush commented May 11, 2012

+1 re: .segments() call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants