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

Add inbrowser toolset for webimplementation #117

Open
Ry3yr opened this issue Jul 31, 2024 · 1 comment
Open

Add inbrowser toolset for webimplementation #117

Ry3yr opened this issue Jul 31, 2024 · 1 comment

Comments

@Ry3yr
Copy link

Ry3yr commented Jul 31, 2024

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.

@hfcRed
Copy link

hfcRed commented Jul 31, 2024

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.

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

No branches or pull requests

2 participants