gattica icon indicating copy to clipboard operation
gattica copied to clipboard

Segmentation issue plus

Open Rockyyost opened this issue 13 years ago • 1 comments

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!!!

Rockyyost avatar Apr 03 '12 13:04 Rockyyost

+1 re: .segments() call

drush avatar May 11 '12 01:05 drush