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:
- copyright:
2017 by Guzmán Monné.
- license:
MIT, see LICENSE for more details.
Metadata
Release files for meraki-api 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| meraki_api-1.1.3.tar.gz | 13.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| meraki_api-1.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.5 kB
Release files / meraki_api-1.1.3.tar.gz
| Download URL | meraki_api-1.1.3.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ae186b4a0ab6ccc8b70117ec891e082bbeecdf8871563905b746187bcf15914
|
|
BLAKE2b-256 checksum How to use checksums |
809799745d62205790162d55c97fafd2fcd2791805b63030eebe7f52e139ffc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / meraki_api-1.1.3-py3-none-any.whl
| Download URL | meraki_api-1.1.3-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11f9dffc4a3af4bbc0b1badf06c2de1e48d4820bf6f914cc317fcacff6a18657
|
|
BLAKE2b-256 checksum How to use checksums |
5a0652d507cba2dda57ae503b9ec3de20299c1790e96b56ca3c638d2a83bd6e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for meraki-api 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.