forked from er1c/gattica
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Comments
+1 re: .segments() call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!!!
The text was updated successfully, but these errors were encountered: