Permalink
Browse files

added /v3/user/clicks

  • Loading branch information...
1 parent 8f3b772 commit 37334c301a529c050f399715a94d6e3d8d262bd1 Hilary Mason committed Dec 21, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 bitly_api/bitly_api.py
View
@@ -185,10 +185,16 @@ def link_countries(self, link, **kwargs):
data = self._call_oauth2_metrics("v3/link/countries", params, **kwargs)
return data["countries"]
+ def user_clicks(self, **kwargs):
+ """aggregate number of clicks on all of this user's bitly links"""
+ params = dict()
+ data = self._call_oauth2('v3/user/clicks', params, **kwargs)
+ return data
+
def user_popular_links(self, **kwargs):
data = self._call_oauth2_metrics("v3/user/popular_links", dict(), **kwargs)
return data["popular_links"]
-
+
def user_shorten_counts(self, **kwargs):
data = self._call_oauth2_metrics("v3/user/shorten_counts", dict(), **kwargs)
return data["shorten_counts"]

0 comments on commit 37334c3

Please sign in to comment.