基于restkit的bigdoor api客户端库
bigdoorkit的Python项目详细描述
BigDoor客户端
这是用于BigDoor API的python客户端库。
基本用法
bigdoorkit客户端需要bigdoor提供的密钥:
>>> from bigdoorkit import Client >>> client = Client(app_secret, app_key) >>> currency_types = client.get('currency_type') >>> from pprint import pprint >>> pprint(currency_types) [[{u'can_be_cross_publisher': 0, u'can_be_purchased': 1, u'can_be_rewarded': 0, u'created_timestamp': 1263933875, u'description': None, u'has_dollar_exchange_rate_integrity': 1, u'id': 1, u'modified_timestamp': 1263933875, u'read_only': 0, u'resource_name': u'currency_type', u'title': u'Purchase'}, {u'can_be_cross_publisher': 0, u'can_be_purchased': 0, u'can_be_rewarded': 1, u'created_timestamp': 1263933875, u'description': None, u'has_dollar_exchange_rate_integrity': 0, u'id': 2, u'modified_timestamp': 1263933875, u'read_only': 0, u'resource_name': u'currency_type', u'title': u'Reward'}, {u'can_be_cross_publisher': 0, u'can_be_purchased': 1, u'can_be_rewarded': 1, u'created_timestamp': 1263933875, u'description': u'', u'has_dollar_exchange_rate_integrity': 0, u'id': 3, u'modified_timestamp': 1264002256, u'read_only': 0, u'resource_name': u'currency_type', u'title': u'Hybrid'}, {u'can_be_cross_publisher': 1, u'can_be_purchased': 0, u'can_be_rewarded': 0, u'created_timestamp': 1263933875, u'description': None, u'has_dollar_exchange_rate_integrity': 1, u'id': 4, u'modified_timestamp': 1263933875, u'read_only': 0, u'resource_name': u'currency_type', u'title': u'\xdcber'}], {}]
已知问题
- resource模块正在进行大量开发,暂时不应使用。
- 很少有正式文件。
- 单元测试很少。
新闻
0.1.3
发布日期:2010年7月29日
- 资源模块的一些进展
- 修复了restkit中的折旧警告
- 请求不再使用副本构建请求,就地修改params/payload dict。这可以防止原始dict被请求特定的数据(自动生成的令牌、时间等)填充。
0.1.2
发布日期:2010年6月23日
- delete方法现在自动添加delete_token参数。
- delete方法不再尝试解码json响应,因为bigdoor api返回204 no content。
0.1.1
发布日期:2010年6月18日
0.1
发布日期:2010年6月10日