-
Notifications
You must be signed in to change notification settings - Fork 5
Auth V2
Michal Mikulec edited this page Mar 17, 2022
·
3 revisions
-
email
str
⇒ Ubi account email -
password
str
⇒ Ubi account password -
token
str
⇒ Pre-generated token (Automatically generated from email+password)
-
profileid
str
-
userid
str
Both should be the same 👉 ID of the account used to log in
-
get_player(name=None, platform=None, uid=None)
-
name
str ⇒ players' current Ubisoft username -
uid
str ⇒ players' Ubisoft UID -
platform
str ⇒ Defaults to"emea"
(Platforms) - ❗Either
names
oruids
andplatform
must be present
-
-
get_player_batch(platform, names=None, uids=None)
-
names
list[str] ⇒ players' current Ubisoft username -
uids
list[str] ⇒ players' Ubisoft UID -
platform
str ⇒ Defaults to"emea"
(Platforms) - ❔Calls
get_player
on everyname
/uid
in the list that gets passed to this - ❗Either
names
oruids
andplatform
must be present
-
-
close
- Should be called when you're done
-
connect
- Automatically called when needed
-
get_session
- Retrieves the current session, ensuring it's valid first