-
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
API V4 Support #137
Comments
Hi @tpitale I wonder if this issue is related to something new I just found: I can't see these new "kind" of web profiles called "App + Web" when calling the Thanks in advance! |
Could you share the docs for this new kind of profile? It may be V4-only. But I’d be surprised. Either way I reallly need to do this ticket. 😆 |
Hi @tpitale! I'm not able to find any related documentation. I'm doing a fork now and will give it a try for the version upgrade. |
wow, the change is massive! lol |
Yeah, it isn't a trivial change between V3 and V4 … but I think we can keep the code the same in most legato, and just change the adapter that sends the request to the API. I think that will work. |
It's basically … instead of making it query params to one endpoint, it's a POST to another endpoint with a big body for the request. So, need an adapter to handle converting our structures into either query params or the body. And then a change in the endpoint depending on some config. |
Yes, the change should be done mainly here. right? Do you want to keep the response object with the same format that you have today? By the way, the upgrade is only in the Reporting API, not in the Management API, so my initial "App + Web" issue shouldn't be solved by upgrading the Reporting API :( |
So, there's some work here: https://github.com/tpitale/legato/blob/master/lib/legato/request.rb#L22 to handle the new endpoint. We'll need a path to switch on. Changes in the Response It might be best to move the current Then, instead of The And then based on that we would look up the Request/Response here https://github.com/tpitale/legato/blob/master/lib/legato/user.rb#L14. And all of that while updating the management API sections to use the |
Hey y'all, I was wondering how this was moving along and if y'all needed any help! Would definitely be down to help push the 🙏 |
Started working on this, but now I have a 9-day-old baby so kinda on pause. Sorry! |
Curious if there are any updates here? I'd love to keep using Legato for V4 if it's supported. If not, what are other people using instead? |
I haven't received any PRs for the work. You're welcome to submit one @bborn. |
The last time I looked, yeah. Legato hasn't changed much, but I haven't looked at the Google api since that comment. |
I've got some time today to work on this, too. Give me through this weekend @bborn? |
@tpitale happy to help out as much as possible! I just don't know the Legato internals all that well 😄 |
Starting with the changes to move all the existing functionality to a V3 location to make space for a V4. |
https://developers.google.com/analytics/devguides/reporting/core/v4/migration
The text was updated successfully, but these errors were encountered: