Skip to main content

Meraki Dashboard API wrapper.

Project description

Meraki API is a wrapper around requests library to interact with the Meraki Dashboard API. It simplifies interacting with the API by keeping track of the users token, handling query and body parameters, and has the ability to execute the request lazily.

First, we can bootstrap the module by indicating our API Key.

>>> import MerakiAPI
>>> KEY = <Your user Meraki API KEY>
>>> meraki = MerakiAPI(KEY)

After this we don’t have to worry again about it. To get the a list of all the organizations we would call the organizations().index() function.

>>> response = meraki.organizations().index()

This will return a requests response object. If we want to get the json data from the response, we just call .json() over it.

>>> json = response.json()

If we want to set up the request to call it in the future we can use the lazy function before calling on index.

>>> lazy_request = meraki.organizations().lazy().index()

This will return a LazyRequests object that holds the request action until we need to run it. It is also useful to check the URL that was created, without actually generating a request to the API.

>>> lazy_request.get_url()
"https://dashboard.meraki.com/api/v0/organizations"

When we feel like it we can use the call function inside out LazyRequests object to send the request to the Server. This will also return a requests response object.

>>> lazy_request.call()

All the endpoints specified as of July 1 2017 are defined. You can see the official documentation at:

https://dashboard.meraki.com/api_docs
copyright:
  1. 2017 by Guzmán Monné.
license:

MIT, see LICENSE for more details.

Project details


Release history Release notifications

This version
History Node

1.1.3

History Node

1.1.2

History Node

1.1.1

History Node

1.1.0

History Node

1.0.1

History Node

1.0.0

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
meraki_api-1.1.3-py3-none-any.whl (21.1 kB) Copy SHA256 hash SHA256 Wheel py3 Jul 7, 2017
meraki_api-1.1.3.tar.gz (13.4 kB) Copy SHA256 hash SHA256 Source None Jul 7, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page