故事市场的客户库
python-storymarket的Python项目详细描述
这是Storymarket API的客户端。
你需要一个StoryMarket帐户才能使用这个库 通过访问 Developer API page。
用法
首先使用creds创建api实例:
>>> import storymarket >>> api = storymarket.Storymarket(YOUR_API_KEY)
然后调用方法:
>>> api.orgs.all() [<Org: My Org>] >>> api.text.create({ ... 'title': 'Man Bite Dog', ... 'content': '...', ... 'tags': ['man', 'dog', 'biting'], ... 'org': api.orgs.all()[0], ... 'category': api.categories.get(123) ... }) >>> <Text: Man Bites Dog>
关于细节, see the documentation 和/或故事市场的API documentation。