danielwerg / r6api.js

🍫 Node.js wrapper around Rainbow Six Siege APIs
https://npm.im/r6api.js
MIT License
111 stars 19 forks source link

Ranked 2.0 not working #95

Open Us3r-3C29x opened 1 year ago

Us3r-3C29x commented 1 year ago

I tried to use it, but its not working anymore

Please fix

danielwerg commented 1 year ago

Same.

Please open pr if you have a fix :)

I will try to figure out how to get stuff from ranked 2.0 once I have enough free time, spending most of my coding time on Advent of Code these days.

related: https://github.com/Seems2Legit/Rainbow-Six-Siege-Player-Stats-API/issues/91

Us3r-3C29x commented 1 year ago

Any updates?

Us3r-3C29x commented 1 year ago

https://github.com/hmes98318/r6s-stats-api

He updated it, you may have a look on it. I dont currently have time

danielwerg commented 1 year ago

https://github.com/hmes98318/r6s-stats-api

He updated it, you may have a look on it. I dont currently have time

Last I checked that package was simply scraping r6 tracker site, which @BadCoder1337 seem to confirm in other issue.

danielwerg commented 1 year ago

Got it working on my private branch, thanks to https://github.com/Seems2Legit/Rainbow-Six-Siege-Player-Stats-API/issues/91#issuecomment-1362191970

Still need to re-factor a lot of code now. Once it's done I will update master branch, pr are always welcome :)

Also the comment doesn't directly mention that you need to pass following headers:

Ubi-AppId: "e3d5ea9e-50bd-43b7-88bf-39794f4e3d40",
Authorization: "ubi_v1 t=TICKET_HERE",
Ubi-SessionId: "UUID_HERE"
danielwerg commented 1 year ago

https://github.com/danielwerg/r6api.js/commit/76ce63132078fd140e6c26565349a51c9b899bea

Mostly done, not sure if getProfileSeasonalv2 would be better name, thoughts? Here is new method names on my v5 branch:

RealRunSpace commented 1 year ago

Still doesn't work, tested with both AppsID but still nothing, getting error 500 from server

danielwerg commented 1 year ago

Still doesn't work, tested with both AppsID but still nothing, getting error 500 from server

Have you tried next branch?

RealRunSpace commented 1 year ago

Yes, that's actually the next branch, the old one didn't requiere the App ID for anything (I think)

danielwerg commented 1 year ago

Yes, that's actually the next branch, the old one didn't requiere the App ID for anything (I think)

Well I will need a snippet of code to reproduced that because it's work fine for me.

RealRunSpace commented 1 year ago

Check out Discord in the general channel, if you are online now we can try to short some things out!!

Thanks btw!

ghost commented 1 year ago

@RealRunSpace @danielwerg are there any updates?

RealRunSpace commented 1 year ago

It does work perfectly since lot of time ago

ghost commented 1 year ago

@RealRunSpace ohh, then I'm making something wrong... Maybe u can come to the Discord general chat real quick so i can clear up some things?

RealRunSpace commented 1 year ago

I'm not at home currently sorry, but someone will help you soon don't worry

ghost commented 1 year ago

I think i figured out the problem. There was no npm update ;)

ghost commented 1 year ago

Edit: I'm now facing a weird "Internal Server Error". More on Discord if somebody wants to help ty :)