from meraki_sdk.meraki_sdk_client import MerakiSdkClient
from meraki_sdk.exceptions.api_exception import APIException
x_cisco_meraki_api_key = 'X-Cisco-Meraki-API-Key'
client = MerakiSdkClient(x_cisco_meraki_api_key)
devices_controller = client.devices
collect = {}
organization_id = 'organizationId4'
collect['organization_id'] = organization_id
per_page = 1000
collect['per_page'] = per_page
starting_after = '?'
collect['starting_after'] = starting_after
ending_before = '?'
collect['ending_before'] = ending_before
try:
result = devices_controller.get_organization_devices(collect)
except APIException as e:
print(e)