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(STORYMARKET_API_KEY)

Then call on the Storymarket object:

class storymarket.Storymarket
audio

An AudioManager - get, create, and update audio content.

data

A DataManager - get, create, and update data content.

photos

A PhotoManager - get, create, and update photo content.

text

A TextManager - get, create, and update text content.

video

A VideoManager - get, create, and update photo content.

packages

A PackageManager - get, create, and update packages of content.

categories

A CategoryManager - get categories.

subcategories

A SubcategoryManager - get subcategories.

sub_type

A SubtypeManager - get subtypes.

orgs

An OrgManager - get organizations.

pricing

A PricingSchemeManager - get pricing schemes.

rights

A RightsSchemeManager - get rights schemes.

For example:

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

Contributing

Run tests with python setup.py test or install Nose and run nosetests.

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

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

Indices and tables

Table Of Contents

Next topic

Content APIs

This Page