Skip to content

Auth V2

Michal Mikulec edited this page Mar 17, 2022 · 3 revisions

class siegeapi.Auth( email=None, password=None, token=None, appid=None )

Parameters

  • email str ⇒ Ubi account email
  • password str ⇒ Ubi account password
  • token str ⇒ Pre-generated token (Automatically generated from email+password)

Attributes

  • profileid str
  • userid str

Both should be the same 👉 ID of the account used to log in

Methods

  • 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 or uids and platform 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 every name/uid in the list that gets passed to this
    • Either names or uids and platform 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