skeletonbow: One more thing worthy of note is that GOG announced quite a long time ago that Galaxy would have a documented public API once it was finalized.
mrkgnao: That's interesting. Are you sure? I remember us asking for it, but I don't remember GOG actually promising it. May have missed it.
Taken from the FAQ at the bottom of the galaxy page:
10. Can we edit, modify, or tweak GOG Galaxy?
If you like to tinker, feel free to start building your own features or even entire clients compatible with GOG Galaxy, assuming you can figure things out right now. We won't actively work against attempts to improve the GOG Galaxy experience, although we can't promise not to break anything as we continue to develop our own tools and infrastructure.
It kind of suggests that they might make an API later.. if you poke around in the files for it there's the HTML and Javascript which you can modify (or possibly learn from).
I haven't had more than cursory poke about to see how possible integrating my script into Galaxy might be though so I don't know what exactly is there or can be done.
And to add to the useful things that you can use;
https://www.gog.com/friends/search Can be used to retrieve data for a user by their name (including their forum ID, which is different from their Galaxy ID)
I'm not sure if it can be used properly with just a url.. I use it like this in my script:
$.ajax({
type: 'POST',
url: '
https://www.gog.com/friends/search',
contentType: 'application/json; charset=utf-8',
dataType: 'json',
data: JSON.stringify({"query": eventData.data.name})
})