I'm trying to import Meraki and get error of __init__ raise APIKeyError()
Here is the script I'm using
MERAKI_DASHBOARD_API_KEY='093b24e85df15a3e66f1fc359f4c48493eaa1b73' # Demo API Key
import meraki
dashboard = meraki.DashboardAPI()
my_orgs = dashboard.organizations.getOrganizations()
Here is where it fails
# Check API key
api_key = api_key or os.environ.get(API_KEY_ENVIRONMENT_VARIABLE)
if not api_key:
raise APIKeyError()
Here is the output
C:\Users\MerakiAppData\Local\Programs\Python\Python38\Lib\site-packages\meraki\__init__.py", line 61, in __init__
raise APIKeyError()
meraki.exceptions.APIKeyError: Meraki API key needs to be defined
Any help would be apricated in advance.