Commits

Brad Montgomery  committed 378e02f

Added start and limit parameters to Repository.events

  • Participants
  • Parent commits 9b6ace9

Comments (0)

Files changed (1)

File bitbucket/api.py

         if query: url += '?%s' % query
         return json.loads(self.bb.load_url(url))
 
-    def events(self):
+    def events(self, start=None, limit=None):
         url = self.base_url + 'events/'
+        query = smart_encode(start=start, limit=limit)
+        if query: url += '?%s' % query
         return json.loads(self.bb.load_url(url))
 
     def followers(self):