The GetUserID method is a hacky way to get the user ID since it calls TC.Legacy.getPage("/answer") to fetch the answer page and scrape the user ID from there. It should be used when the user ID is not stored anywhere in the page (e.g. "/savedquestions").
This adds a new method GetUserIDFromAnswerPage which should be used in the answer page.
The
GetUserID
method is a hacky way to get the user ID since it callsTC.Legacy.getPage("/answer")
to fetch the answer page and scrape the user ID from there. It should be used when the user ID is not stored anywhere in the page (e.g. "/savedquestions").This adds a new method
GetUserIDFromAnswerPage
which should be used in the answer page.