Web API #2406
Replies: 24 comments
-
The data that is on different tabs of the panel is available https://github.com/plan-player-analytics/Plan/blob/master/Plan/json-endpoints.md - The docs are missing some, but you can probably look at the Browser Dev console Networking tab while opening the site to find any missing ones (Remember to enable logging of XMLHTTPRequests on dev console settings) Extension data is not available through these endpoints (I haven't serialized the object representation into json anywhere) - it needs to be accessed from the database |
Beta Was this translation helpful? Give feedback.
-
How would one get around the username and password with the json endpoints? |
Beta Was this translation helpful? Give feedback.
-
endpoint A proper API-key thing is probably needed at some point, but it needs web-user permissions to be redone. |
Beta Was this translation helpful? Give feedback.
-
I seem to be getting an error every time I run it: |
Beta Was this translation helpful? Give feedback.
-
It sounds like you are using an out of date certificate. This can happen if you're using the self-signed cert inside Plan (which expired in 2018) or if your cert expired |
Beta Was this translation helpful? Give feedback.
-
So its an issue with the server running Plan not what I'm doing? |
Beta Was this translation helpful? Give feedback.
-
Yep - If you have a self signed cert on the server you might need to add it to the trust store of the client you're connecting with |
Beta Was this translation helpful? Give feedback.
-
Both my cert and the one on the server are now up-to-date and I seem to be getting a |
Beta Was this translation helpful? Give feedback.
-
HTTP 401 stands for Unauthorized, check that the username & password are correct |
Beta Was this translation helpful? Give feedback.
-
Sorry I feel like I'm being a bit of a pain The |
Beta Was this translation helpful? Give feedback.
-
It sounds like you're using version older than build 545 (where cookie based login was introduced) - try updating to latest build to see if it fixes the issue https://github.com/plan-player-analytics/Plan/releases |
Beta Was this translation helpful? Give feedback.
-
Even when the login is correct I get a user and password doesn't match error
|
Beta Was this translation helpful? Give feedback.
-
What is the full response body that you get as the error? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Try URI encoding the username and password - that might help |
Beta Was this translation helpful? Give feedback.
-
I get the same error even with them URI encoded |
Beta Was this translation helpful? Give feedback.
-
Could you send some code to see what is going on |
Beta Was this translation helpful? Give feedback.
-
Config file:
|
Beta Was this translation helpful? Give feedback.
-
Hmm, looks correct to me, if you put the request into Postman what do you get back? |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late response I've been busy the last few days I get that back on all requests made to the endpoint |
Beta Was this translation helpful? Give feedback.
-
That looks like |
Beta Was this translation helpful? Give feedback.
-
Was that given for a |
Beta Was this translation helpful? Give feedback.
-
Yeah I get that on all requests I make including the auth/... ones |
Beta Was this translation helpful? Give feedback.
-
If you open dev tools network tab in the browser before logging in and then login, does the request to These might help debugging the script |
Beta Was this translation helpful? Give feedback.
-
Is there a web API that we can use to grab data from PLAN on servers such as total players joined or average essentials balance?
Additional context
(I'm trying to make a modular plan addon for a discord bot)
Beta Was this translation helpful? Give feedback.
All reactions