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.
First create an instance of the API with your creds:
>>> import storymarket
>>> api = storymarket.Storymarket(STORYMARKET_API_KEY)
Then call on the Storymarket object:
An AudioManager - get, create, and update audio content.
A DataManager - get, create, and update data content.
A PhotoManager - get, create, and update photo content.
A TextManager - get, create, and update text content.
A VideoManager - get, create, and update photo content.
A PackageManager - get, create, and update packages of content.
A CategoryManager - get categories.
A SubcategoryManager - get subcategories.
A SubtypeManager - get subtypes.
An OrgManager - get organizations.
A PricingSchemeManager - get pricing schemes.
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:
See also
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!