支持计费和统计的Fastly API客户端。
fastly-client的Python项目详细描述
支持计费和统计的Fastly API客户端(api.fastly.com)。
使用棉花糖(用于序列化)和请求(用于rest api调用)开发。
示例
import fastly_client client = fastly_client.Client('your-api-token') period = fastly_client.period(2017, 12, months=1) try: bill = client.bill(period) regions = client.regions(period) services = client.services() stats = client.service_stats(period, services[0].id, regions[0]) except fastly_client.FastlyException: print("An error occurred") raise