blob: 44293ed8dd7446b352d6038896a6921a46eee0cf [file] [log] [blame]
from pankov2.common import send
try:
from urllib.parse import urlencode
except ImportError:
from urllib import urlencode
@send('get')
def event_list(**kwargs):
url = '/events?{}'.format(urlencode(kwargs))
return url, None
@send('get')
def event_type_list(**kwargs):
url = '/event_types?{}'.format(urlencode(kwargs))
return url, None