Skip to content

Retrieving Viewers

AnkhHeart edited this page Feb 25, 2018 · 1 revision

Retrieving the Viewerlist

Function

List<string> GetViewerList()

Use in Python

result = Parent.GetViewerList()

Retrieving all Active Users

Function

List<string> GetActiveUsers()

Use in Python

result = Parent.GetActiveUsers()

Retrieving a Random Active User

Function

string GetRandomActiveUser()

Use in Python

result = Parent.GetRandomActiveUser()

Retrieving a User their Display Name

Function

string GetDisplayName(string userId)

Use in Python

result = Parent.GetDisplayName(data.User)

Batch retrieving Usernames for the requested UserIds

Function

PythonDictionary<string userid,string username> GetDisplayNames(List<string>
userIds)

Use in Python

# Import List from .NET at the top of your page
from System.Collections.Generic import List

mylist = List[str](){
'ankhheart',
'momo',
'castorr91',
'must13',
'wellbrained'
}

result = Parent.GetDisplayNames(mylist)