1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.Filter import Filter
5 from PLC.Sessions import Session, Sessions
6 from PLC.Persons import Person, Persons
7 from PLC.Auth import Auth
9 class GetSessions(Method):
11 Returns an array of structs containing details about users sessions. If
12 session_filter is specified and is an array of user identifiers or
13 session_keys, or a struct of session attributes, only sessions matching the
14 filter will be returned. If return_fields is specified, only the
15 specified details will be returned.
24 Mixed([Mixed(Session.fields['person_id'],
25 Session.fields['session_id'])],
26 Filter(Session.fields))
29 returns = [Session.fields]
31 def call(self, auth, session_filter = None):
33 sessions = Sessions(self.api, session_filter)