OutOfBears / DBD-API

Dead By Daylight API
MIT License
56 stars 9 forks source link

question #8

Closed PE4EHbKA-web closed 4 years ago

PE4EHbKA-web commented 4 years ago

Hello,can u help me please?How can I get data about DBD users?After I try to send a GET request I get a 404 error image

jesterret commented 4 years ago

As the error response says, this api endpoint doesn't exist.

PE4EHbKA-web commented 4 years ago

As the error response says, this api endpoint doesn't exist.

But how i can get data player?

jesterret commented 4 years ago

https://github.com/Nexure/DBD-API/blob/775b8f309fc2641017c9ef2ec33d39bad723198f/DBD-API/Services/SteamService.cs#L129 Trace how it's getting data here.

OutOfBears commented 4 years ago

Hello! Sorry for the late response, but it seems your using the wrong endpoint, your using DBD's endpoint to get player stats which does not exist. You can use the one built into the API: https://dbd-stats.info/api/stats/76561198807823607

PE4EHbKA-web commented 4 years ago

Hello! Sorry for the late response, but it seems your using the wrong endpoint, your using DBD's endpoint to get player stats which does not exist. You can use the one built into the API: https://dbd-stats.info/api/stats/76561198807823607

But how can I get data from other APIs? I mean /api/config,bpevents and etc.

jesterret commented 4 years ago

Oh, I seem to have misunderstood Your intentions, and @Nexure got it right. Basically, all the endpoints listed in readme are relative to his domain, so https://dbd-stats.info + whatever endpoint You need. so for Your example: https://dbd-stats.info/api/config https://dbd-stats.info/api/bpevents