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

jacobian/python-storymarket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!