An all-in-one Uplay/Ubisoft API wrapper written for NodeJS
- Get Ubisoft news data
- That's basically it so far
npm install ubiapi
^ not published yet :P
The Ubisoft
class is used for basic requests as well as authentication. You'll notice that you need to provide an "appid" in the constructor. The easiest way to get this is to:
- Open the developer tools on your web browser
- If possible, filter URLs by the word "public" (we're looking for the URL "https://public-ubiservices.ubi.com")
- Find an
iplocation
GET request (look out for OPTIONS requests, they won't have what you're looking for) - Find "Ubi-AppId" in the request headers
Here's an example of how it works:
const uapi = require('ubiapi')
const ubi = new uapi.Ubisoft('yourappid')
async function getUbiNews() {
return await ubi.getFeaturedNews()
}
getUbiNews()
- Better news stuff (learning the filters and other params)
- User/profile specific data
- Game specific data (R6, For Honor, Division, etc.)
- The goal is to support as many games as possible
- Forum stuff maybe?