usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [04/50] usergrid git commit: added sample URLs for retrieving data
Date Mon, 22 Aug 2016 15:00:08 GMT
added sample URLs for retrieving data


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/be18bc18
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/be18bc18
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/be18bc18

Branch: refs/heads/asf-site
Commit: be18bc18dfb70c438690ce9180cc35bd2f84e9dd
Parents: ac9cfff
Author: Jeff West <jwest@apigee.com>
Authored: Thu Jul 28 15:09:27 2016 -0700
Committer: Jeff West <jwest@apigee.com>
Committed: Thu Jul 28 15:09:27 2016 -0700

----------------------------------------------------------------------
 .../samples/beacon-event-example.py             | 24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/be18bc18/utils/usergrid-util-python/samples/beacon-event-example.py
----------------------------------------------------------------------
diff --git a/utils/usergrid-util-python/samples/beacon-event-example.py b/utils/usergrid-util-python/samples/beacon-event-example.py
index 8e8bf02..e1c3efe 100644
--- a/utils/usergrid-util-python/samples/beacon-event-example.py
+++ b/utils/usergrid-util-python/samples/beacon-event-example.py
@@ -18,6 +18,30 @@
 # */
 
 # URL Templates for Usergrid
+# 
+# Get all events for a user:
+#     https://usergrid.net/beacon-sample/event-example/users/jeff/events
+# 
+# Get only enterStore events:
+# https://usergrid.net/beacon-sample/event-example/users/jeff/events?ql=select * where eventtype=‘enterStore'
+# 
+# Get/filter beacon events for a user:
+#     https://usergrid.net/beacon-sample/event-example/users/jeff/events?ql=select * where
eventtype=‘beacon'
+# 
+# Get latest beacon event for user:
+#     https://usergrid.net/beacon-sample/event-example/users/jeff/events?ql=select * where
eventtype=‘beacon’&limit=1
+# 
+# Beacon events for store:
+#     https://usergrid.net/beacon-sample/event-example/users/jeff/events?ql=select * where
eventtype=‘beacon'
+# 
+# All events for store:
+#     https://usergrid.net/beacon-sample/event-example/stores/store_123/events
+# 
+# All events for a beacon:
+#     https://usergrid.net/beacon-sample/event-example/beacons/store_456-b2/events
+# 
+# Get Users who passed a specific beacon:
+# https://usergrid.net/beacon-sample/event-example/beacons/3fd4fccb-d43b-11e5-978a-123320acb31f/events;ql=select%20*
where profile=1/connecting/events/users
 
 __author__ = 'Jeff.West@yahoo.com'
 


Mime
View raw message