Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (32 sloc) 1.25 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!

Jump to Line
Something went wrong with that request. Please try again.