Hi,
Simple script below.
I send a call I assume once. Therefore well within the limit? Yet only get the first 1000 networks yet we have 2500+.
Is this correct? Do I need to take a different approach?
Help appreciated.
thanks
Aidan
import requests
import json
import time
import datetime
# import system
now = datetime.datetime.now()
# Define variables
API_KEY = 'xxx'
MERAKI_URL = 'https://api.meraki.com/api/v1/'
ORG_KEY = 'xxx'
headers = {'X-Cisco-Meraki-API-Key': API_KEY}
def main(i=0):
# ************** GET the current list of networks
NETWORKS = '/organizations/' + ORG_KEY + '/networks'
NETWORK_list = requests.get(MERAKI_URL + NETWORKS, headers=headers)
print(NETWORK_list)