Changes for page Spreadshirt Public Shop API Documentation
Last modified by admin on 2023/02/14 14:43
Summary
-
Page properties (3 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - Spreadshirt Public Shop API Documentation1 +Home - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.s hop1 +XWiki.jns - Content
-
... ... @@ -1,66 +1,31 @@ 1 - = Preface =1 +{{section}} 2 2 3 -Spreadshirt provides several ways to offer an online shop experience to your customers and earn money through commission: 3 +{column:width=50%} 4 +Spreadshirt is your place to create and buy customized apparel, such as T-shirts, cups or stickers. In order to allow developers to make use of this functionality in their own applications, we now provide a new Spreadshirt API. The Spreadshirt API provides access to a set of Spreadshirt's platform functionality, such as product creation, design upload or basket creation, and allows you to start building your own shops, mass-customization applications and integrations on top of our platform. 4 4 5 -1. The standalone Spreadshop ([[this>>url:https://shop.spreadshirt.com/SpreadShop||rel="nofollow" shape="rect" class="external-link"]], for example). This application is officially developed, hosted and maintained by Spreadshirt. Running a Spreadshop requires zero technical skills and is always the recommended approach. 6 -1. JavaScript integration (described [[here>>url:https://help.spreadshop.com/hc/en-us/articles/360010529039-Website-Integration-with-JavaScript||shape="rect"]]). If you have an existing website, you can embed a piece of JavaScript into it that manipulates your website in order to embed the Spreadshop into your site. This requires a decent understanding of HTML and CSS in order to resolve any conflicts between your site and the Spreadshop that may arise. 7 -1. CMS plugins for [[WordPress>>url:https://wordpress.org/plugins/spreadshop/#developers||rel="nofollow" shape="rect" class="external-link"]] and others (currently just [[Joomla>>url:https://extensions.joomla.org/extension/spreadshop/||rel="nofollow" shape="rect" class="external-link"]]) that embed the JavaScript snippet mentioned in (2.) for you. If you run a website based on such CMS, these plugins can make your life a bit easier. An understanding of HTML and CSS is nonetheless important. 8 -1. An independent, custom built web application based on the **Public Shop API** described in this document. This interface is for web developers only (or people who can afford to hire one). Going for this approach is only feasible for people who have a solid understanding of server side & client side programming, HTTP, HTML and CSS. 6 +To get started in using the Spreadshirt API: 9 9 10 -= Prerequisites = 8 +* [Watch the YouTube Video about Spreadshirt's REST API|http://www.youtube.com/watch?v=6IlGvHPq9D4], that gives and introduction to the API and tells you about the opportunities for you. 9 +* [Browse our API documentation|API:API] to become familiar with our API, i.e. REST API urls and representations and status codes. 10 +* Conduct API calls using your [Web browser|http://api.spreadshirt.net/api/v1/shops/205909] or our [API browser|http://demoapp.spreadshirt.net/apibrowser/]. 11 +* Register for an API key with your Spreadshirt user id in case you need access to special features, such as product creation, design upload or basket creation. 12 +** [Register for an API key (EU platform)|https://www.spreadshirt.de/-C7120] 13 +** [Register for an API key (NA platform)|https://www.spreadshirt.com/-C6840] 14 +* [Register for a Spreadshirt shop|http://www.spreadshirt.net/open-t-shirt-shop-C5781], in case you don't have one yet. 15 +* [Checkout the applications section|API:Applications] to get sample code, find out what other people did with our API and get some fresh ideas. Checkout the [Simplomat (Simple Shirt Designer)|Simplomat (Simple Shirt Designer Demo)] demos in case you work with Javascript. 16 +* In case you have questions or problems, visit the [Spreadshirt API forum|http://forum.spreadshirt.net/forumdisplay.php?f=133]. 11 11 12 - SpreadshirtrunsaEuropean anda North Americanplatformthatarendependent fromanother.Youneedto:18 +To stay up to date on API changes and development news follow the [Spreadshirt developer blog|http://blog.spreadshirt.net/developer/]. 13 13 14 -* Choose a platform 15 -* Register a Spreadshop: 16 -** Europe: [[here>>url:https://www.spreadshirt.net/start-selling-C5780||shape="rect"]] 17 -** North America: [[here>>url:https://www.spreadshirt.com/start-selling-shirts-C3598||shape="rect"]] 18 -* Visit this partner area page of the appropriate platform to retrieve your API Key: 19 -** Europe: [[here>>url:https://partner.spreadshirt.net/apiKey||shape="rect"]] 20 -** North America: [[here>>url:https://partner.spreadshirt.com/apiKey||shape="rect"]] 20 +Please note that *Spreadshirt API is beta* right now. 21 21 22 - =Basics=22 +[Legal Information|API:Legal Information] 23 23 24 -* The API described here is loosely based on [[REST>>url:https://en.wikipedia.org/wiki/Representational_state_transfer||shape="rect"]] principles. This means among other things that all endpoints can be accessed via HTTPS and HTTP clients like [[curl>>url:https://curl.haxx.se/||shape="rect"]] or [[postman>>url:https://www.getpostman.com/||shape="rect"]] can be used directly to explore the API. 25 -* The base url for all requests is [[https:~~/~~/api.spreadshirt.net>>url:https://api.spreadshirt.net||shape="rect"]] for eu or [[https:~~/~~/api.spreadshirt.com>>url:https://api.spreadshirt.com||shape="rect"]] for na. (This only applies to REST resources, images are retrieved from [[https:~~/~~/image.spreadshirtmedia.net>>url:https://image.spreadshirtmedia.net||shape="rect"]] or [[https:~~/~~/image.spreadshirtmedia.com>>url:https://image.spreadshirtmedia.com||shape="rect"]].) 26 -* ((( 27 -(% class="auto-cursor-target" %) 28 -All requests have to be made with HTTP headers "Authorization" and "User-Agent". The authorization header must include your API key and the user agent header must include the name of your application, then its version, followed by a domain and a contact email address: 24 +{column} 25 +{column:width=5%} 26 +{column} 27 +{column:width=45%} 28 +{recently-updated} 29 +{column} 29 29 30 -|=((( 31 -Header Key 32 -)))|=((( 33 -Header Value Format 34 -)))|=((( 35 -Example Header Value 36 -))) 37 -|((( 38 -Authorization 39 -)))|((( 40 -SprdAuth apiKey="<apikey>" 41 -)))|((( 42 -SprdAuth apiKey="dd30b4db-8cd6-4fb8-86b3-e680984b9e18" 43 -))) 44 -|((( 45 -User-Agent 46 -)))|((( 47 -<YourApplication>/<YourApplicationVersion> ([[https:~~/~~/www.yourdomain.com>>url:https://www.yourdomain.com/||shape="rect"]]; [[yourname@yourdomain.com>>mailto:yourname@yourdomain.com||shape="rect"]]) 48 -)))|((( 49 -WordPress-Plugin/1.0 ([[https:~~/~~/www.deinblog.com>>url:https://www.deinblog.com/||shape="rect"]]; [[admin@deinblog.com>>mailto:admin@deinblog.com||shape="rect"]]) 50 -))) 51 - 52 -(% class="auto-cursor-target" %) 53 -Failing to provide this information may result in your requests getting blocked at any point in time because traffic of unknown source can be considered illegitimate. 54 -))) 55 -* All requests should be performed with a ?mediaType=json query parameter to get the responses in the recommended JSON format. Leaving the parameter out may or may not result in a response in XML format which is harder to work with. 56 -* All REST resources return HTTP status code 200 or 201 in case of successful requests. Status codes from the 4xx range indicate a mistake on your side while errors from the 5xx range indicate an error on ours. 57 -* Timestamps are returned in ISO8601 format. 58 - 59 -= Next Steps = 60 - 61 -There is a [[tutorial>>doc:API.Build your own shop system]] available showing the use of this API in order to **implement an own shop system**. 62 - 63 -= [[doc:API.Legal Information]] = 64 - 65 -(% class="auto-cursor-target" %) 66 -\\ 31 +{{/section}}
- api-parts.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiGuest - Size
-
... ... @@ -1,1 +1,0 @@ 1 -17.4 KB - Content
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 - 8192171 +5210117 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://developer.spreadshirt.net/wiki/spaces/API/pages/ 819217/Spreadshirt Public Shop API Documentation1 +https://developer.spreadshirt.net/wiki/spaces/API/pages/5210117/Home