Skip to content

terrorist-squad/spreadshirt_api_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Setup

First, you need to setup your API credentials:

sp_client = Spreadshirt("-!- api_key -!-", '-!- shop id -!-')

Examples

List Products

...
list_data = sp_client.get_sellables(1)
print(list_data['sellables'][0]['name'])
print(list_data['sellables'][0]['description'])
...

List Departments

...
departments = sp_client.get_departments()
print(departments['productTypeDepartments'][0]['name'])

Product

...
sellable = sp_client.get_sellable( sellable_id, idea_id, appearance_id)
print( sellable['name'] )
print( sellable['price'] )
print( sellable['tags'] )
print( sellable['images'] )
...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages