Skip to content

Commit

Permalink
Added /zones/rate_limits API command
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Dec 22, 2016
1 parent e144c66 commit 0f670b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CloudFlare/api_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def api_v4(self):
zones_settings(self)
zones_analytics(self)
zones_firewall(self)
zones_rate_limits(self)
# The API commands for /railguns/
railguns(self)
# The API commands for /organizations/
Expand Down Expand Up @@ -208,6 +209,14 @@ def zones_firewall(self):
setattr(branch, "rules",
self._add_with_auth(base, "zones", "firewall/access_rules/rules"))

def zones_rate_limits(self):
""" API core commands for Cloudflare API"""

base = self._base
branch = getattr(self, "zones")
setattr(branch, "rate_limits",
self._add_with_auth(base, "zones", "rate_limits"))

def railguns(self):
""" API core commands for Cloudflare API"""

Expand Down

0 comments on commit 0f670b5

Please sign in to comment.