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

Fewer api calls #23

Open
magma1447 opened this issue May 11, 2015 · 3 comments
Open

Fewer api calls #23

magma1447 opened this issue May 11, 2015 · 3 comments

Comments

@magma1447
Copy link
Owner

After #22 is implemented. Each cache page request at Geocaching.com will result in 3 requests to Project-GC.com (for subscribers), Get cachedata, get VGPS, get news/messages.

We could keep the old methods, but also make a new method that returns data from all three at once.

This of course needs server side changes.

@magma1447 magma1447 changed the title Less api calls Fewer api calls Nov 28, 2016
@magma1447 magma1447 added this to the v2.0 milestone Nov 28, 2016
@magma1447
Copy link
Owner Author

magma1447 commented Nov 28, 2016

Currently two methods are called when loading a cache page.

  • GetMyUsername
  • GetCacheDataFromGccode

The future solution should be to call a method called GetData. This method will accept a json like the following.
{"GetUserData": true, "GetCacheDataFromGccode": "GC12345"}, "UpdateCacheInfo": {"lastUpdated": datetime, "lastFound": datetime}, "GetExistingVGPSLists": "GC12345"}

GetUserData is a replacement of GetMyUsername and includes membership data, unread news and unread PMs (#22).
Allowed arguments can easily be extented with for example GetSettings (#27) and GetFriends (#34).

@magma1447 magma1447 mentioned this issue Nov 29, 2016
@magma1447 magma1447 self-assigned this Nov 29, 2016
@magma1447
Copy link
Owner Author

Assigned to me due to lack of server side support.

@magma1447
Copy link
Owner Author

I'll close this, cleaning up a bit. If it ever feels like an issue we can just attack it again.

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

No branches or pull requests

1 participant