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: docs/data.rst
+13
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,19 @@ You can get all of the data for a feed by using the ``data(feed)`` method. The r
33
33
for d in data:
34
34
print('Data value: {0}'.format(d.value))
35
35
36
+
By default, the maximum number of data points returned is 1000. This limit can be changed by using the max_results parameter.
37
+
38
+
.. code-block:: python
39
+
40
+
# Get less than the default number of data points
41
+
data = aio.data('Test', max_results=100)
42
+
43
+
# Get more than the default number of data points
44
+
data = aio.data('Test', max_results=2000)
45
+
46
+
# Get all of the points
47
+
data = aio.data('Test', max_results=None)
48
+
36
49
You can also get a specific value by ID by using the ``feeds(feed, data_id)`` method. This will return a single piece of feed data with the provided data ID if it exists in the feed. The returned object will be an instance of the Data class.
0 commit comments