Hello,
New to programming and replit.
I am trying to use it for Python API programming. I have read the guide on making API calls and I’m trying to make a very basic get call just to test, but I am not sure how I am supposed to send the API key to authenticate. do I pass it as a parameter or something?
Also - can I do this from the development server or do I need to change it to production WSGI?
import requests
api_url = “https://api.meraki.com/api/v1/organizations”
response = requests.get(api_url)
response.json()
thanks!
There is a python library for this API Cisco Meraki - Create with the Meraki Platform
Here, all you need to do is open the secrets tab and add a secret with the same MERAKI_DASHBOARD_API_KEY
and set your API key as the value of that
Welcome to the community! (Coding Cactus forgor to say that
)
Hi,
Thanks for the replys. The secret bit makes sense but I dont quite get the rest of the interface.
Do I need to import the meraki library in every program I write?
Im trying to run the most basic GET call I can to figure out how to do it but I’m not getting very far lol. Every time I run something I get…
That means you’re running a flask webserver, which hopefully is intentional?