Closed Juhaz closed 5 months ago
I saw that but have no idea how an average user is supposed to get their id. Any idea how to get the public guid of the user?
window['chromeSettings'] = { "isAuthenticated": true, "paymentUrl": "https://payments.geocaching.com", "planUrl": "", "gameplayUrl": "", "mainElementId": "Content", "mapUrl": "", "locale": "en-US", "inlinePostfix": "--inline", "publicUrl": "https://www.geocaching.com", "hostname": "https://www.geocaching.com", "accountId": "xxxxxx", "username": "Herr Ma", "findCount": 33633, "hideCount": 49, "avatarUrl": "https://img.geocaching.com/avatar/5be8127d-32c0-4bb0-84e2-b5e4ab266776.jpg", "isBasic": false, "showDoNotSell": false, "showRenew": false, "userPublicGuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx", "dateJoined": "2010-05-01T03:11:15.65", "isValidated": true, "membershipLevel": "Premium" }; window['userRef'] = 'PR3YGE1';//]]>
Easy enough. Would be great progress for sure. Unfortunately I don't have enough time for that at the moment.
doesn't even have to be your profile, I think every page on geocaching.com has the window['chromeSettings'] object when you're logged in.
For even less technical way, the link to your username in logs or cache owner points to https://www.geocaching.com/profile/?guid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx
Easy enough. Would be great progress for sure. Unfortunately I don't have enough time for that at the moment.
I'm deathly allergic to PHP but can try and see if I can wrangle with it enough for a PR 😅️
I'm deathly allergic to PHP but can try and see if I can wrangle with it enough for a PR sweat_smile
you are free to rewrite it in a language of your choice ;p
you are free to rewrite it in a language of your choice ;p
Tempting, but I don't think fragmentation is good either so tried to come up with something :smiley:
V3 api is marked as deprecated and will likely stop working some time in the future.
V4 api would also allow the possibility to filter by completion statuses by including the user's public guid in the request without nasty kludges like copypasting the logs page html.