bunny-cdn-python
Bunny CDN is the fastest and Cheapest CDN
This is a bunny cdn python module for buny cdn API
How to Use IT
As of now there are 4 commands whch are listed below with their patrameters
1.create_pull_zone(api, name, original_url, type)
2.delete_pull_zone(api, id)
3.purge_cache(api, id)
4.add_host_name(api, id, Hostname)
5.force_ssl(api, id, Hostname, ssl)
6.get_free_ssl(api, Hostname)
7.billing_info(api, Hostname)
8.add_newblocked_ip(api, pullzoneid, ip)
9.remove_blocked_ip(api, pullzoneid, ip)
Example
import bunnycdn
api = "Your API key"
purge = bunnycdn.purge_cache(api, 1234)
print(purge)
INFO
- This is not a official bunny cdn module
- ssl must be an Boolean value
- api and ID must be an Integer
- ip must be an string