Permalink
Browse files

entity type summary stats enpoint. fixes sunlightlabs/brisket#14

  • Loading branch information...
1 parent 70187cc commit f843f7c54b4aa742f55f6a8ea5b4f7f12788c9f8 @boblannon boblannon committed Feb 14, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 influenceexplorer.py
View
3 influenceexplorer.py
@@ -86,6 +86,9 @@ class Summaries(SubAPI):
def summarize(self, entity_type, indicator, cycle=DEFAULT_CYCLE, limit=DEFAULT_LIMIT):
return self._get_url_json('aggregates/summary/%s/%s.json'%(entity_type,indicator),cycle)
+ def metadata(self, entity_type):
+ return self._get_url_json('entities/summary/%s.json'%(entity_type,))
+
class Entities(SubAPI):
"""
Methods related to searching, listing and ranking entities.

0 comments on commit f843f7c

Please sign in to comment.