Skip to content
This repository has been archived by the owner on Nov 25, 2017. It is now read-only.

Latest commit

 

History

History
44 lines (32 loc) · 1.22 KB

README.rst

File metadata and controls

44 lines (32 loc) · 1.22 KB

Python bindings to the Storymarket API

This is a client for the Storymarket API.

You'll need a Storymarket account to use this library, and you'll need to generate an API token by visiting the Developer API page.

Usage

First create an instance of the API with your creds:

>>> import storymarket
>>> api = storymarket.Storymarket(YOUR_API_KEY)

Then call methods:

>>> 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>

For details, see the documentation and/or Storymarket's API documentation.

Contributing

Development takes place on GitHub; please file bugs/pull requests there.

Development on this project was funded by the Lawrence Journal-World - thanks!