You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,10 @@ While you can make direct HTTP requests to dashboard API in any programming lang
28
28
*`pip install meraki`
29
29
* If you have both Python3 and Python2 installed, you may need to use `pip3` (so `pip3 install meraki`) along with `python3` on your system
30
30
* If _meraki_ was previously installed, you can upgrade to the latest stable (non-beta) release with `pip install --upgrade meraki`
31
-
* You can specify the version of the library, for example `pip install meraki==0.110.0` for v0 or `pip install meraki==1.0.0b3` for v1 beta
32
-
* To see the [release history](https://pypi.org/project/meraki/#history), you can also use `pip install meraki==` without including a version number
31
+
32
+
5. Meraki dashboard API v1 is currently in beta, so if you clone this repository and want to use v1 locally, rename the folder _meraki_v1_ to _meraki_, replacing the v0 contents there. You can also specify the version of the library when installing with _pip_:
33
+
* For example, `pip install meraki==0.110.0` for v0 or `pip install meraki==1.0.0b3` for v1 beta
34
+
* To see the full [release history](https://pypi.org/project/meraki/#history), you can also use `pip install meraki==` without including a version number
33
35
34
36
## Usage
35
37
1. Export your API key as an [environment variable](https://www.twilio.com/blog/2017/01/how-to-set-environment-variables.html), for example:
- total_pages (integer or string): total number of pages to retrieve, -1 or "all" for all pages
1270
+
- direction (string): direction to paginate, either "next" (default) or "prev" page
1271
+
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 365 days from today.
1272
+
- t1 (string): The end of the timespan for the data. t1 can be a maximum of 365 days after t0.
1273
+
- timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 365 days. The default is 31 days.
1274
+
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 100.
1275
+
- startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
1276
+
- endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
1277
+
- sortOrder (string): Sorted order of security events based on event detection time. Order options are 'ascending' or 'descending'. Default is ascending order.
1278
+
"""
1279
+
1280
+
kwargs.update(locals())
1281
+
1282
+
if'sortOrder'inkwargs:
1283
+
options= ['ascending', 'descending']
1284
+
assertkwargs['sortOrder'] inoptions, f'''"sortOrder" cannot be "{kwargs['sortOrder']}", & must be set to one of: {options}'''
0 commit comments