Add inbrowser toolset for webimplementation
Since Node.JS is already running in the backend (presumably):
Would it be possible to port this to PHP or the like to be able to print the status of "currently played game" on a website ?
For comparison, with steam you can easily fetch it via their own api.
If "currently played game" is the only thing you need, you can get your presence status using the presence server, which will make it available at the endpoint of your profile at https://nxapi-presence.fancy.org.uk/api/presence/{id}
There do not seem to be any CORS rules set in place so you should be able to fetch it directly from the frontend of your site as long as you allow that domain in your sites content security header.
Not sure what Samuels policy is on pulling data from the presence server however.
Not sure what Samuels policy is on pulling data from the presence server however.
I don't have a written policy anywhere but basically:
- You can fetch your own presence data or someone else's presence data with their consent.
- Refresh presence data only at a reasonable rate. The server only updates every 30s so don't refresh more than that.
- You can fetch data directly from a website using JavaScript or using your own server. If you proxy requests via your own server you must set a User-Agent header (e.g. in a format like
project/version (+url)).
You can also just use the embed the presence server generates.