From 991687d68a391ab480a9fa96040c50a4376e5c2d Mon Sep 17 00:00:00 2001 From: Dromax Date: Thu, 19 Apr 2018 13:34:48 +0200 Subject: [PATCH] sample fix --- doc/analytics_usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/analytics_usage.rst b/doc/analytics_usage.rst index b323c16..4c1bff6 100644 --- a/doc/analytics_usage.rst +++ b/doc/analytics_usage.rst @@ -32,7 +32,7 @@ Here's an example for getting live data for the last five minutes:: pa.set_date('today') pa.set_method('Live.getLastVisitsDetails') pa.set_parameter('lastMinutes', 5) - visits = json.loads(self.a.send_request()) + visits = json.loads(pa.send_request()) You can then inspect the data stored in ``visits``. Please refer to the :ref:`PiwikAnalytics reference` for more details.