from meraki_sdk.meraki_sdk_client import MerakiSdkClient
from meraki_sdk.exceptions.api_exception import APIException
x_cisco_meraki_api_key = ''networkId = ''
client = MerakiSdkClient(x_cisco_meraki_api_key)
events_controller = client.events
collect = {}
collect['network_id'] = networkId
product_type = 'appliance'
collect['product_type'] = product_type
included_event_types = ['client_vpn_connect','client_vpn_disconnect']
collect['included_event_types[]'] = included_event_types
try:
result = events_controller.get_network_events(collect)
print(result)
except APIException as e:
print(e)