Skip to content
This repository was archived by the owner on May 8, 2018. It is now read-only.

Commit b8ebe92

Browse files
committed
Created main documentation structure.
Removed old and unusable README tutorial. Also created AUTHORS file :).
1 parent 8860081 commit b8ebe92

14 files changed

+109
-62
lines changed

AUTHORS

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Current or previous core committers:
2+
3+
* Paulo Alvarado
4+
5+
Contributors (in alphabetical order):
6+
7+
* Mike Patek
8+
* Jonas Obrist
9+
* Pierre
10+
* Shalabh Aggarwal
11+
* Sylvain Fauveau

README.md

Lines changed: 4 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -15,69 +15,15 @@ This is still an ongoing project. If you would like to contribute, see below :).
1515

1616
Its based on the [amazon-mws-python](http://code.google.com/p/amazon-mws-python).
1717

18-
# API usage
19-
20-
Make sure you check out the Amazon MWS documentation at https://developer.amazonservices.com/
21-
22-
Here's an exmaple of how to use python-amazon-mws to upload your products to amazon.
23-
24-
25-
```python
26-
from mws import mws
27-
28-
# You can get all these credentials when you sign up for Amazon MWS
29-
30-
MWS_ACCESS_KEY = 'your key'
31-
MWS_SECRET_KEY = 'your secret'
32-
MERCHANT_ID = 'your merchantid'
33-
34-
# Amazon supports different file formats for uploading products
35-
# here i use a simple tsv file.
36-
37-
file_name = "templates/amazon-upload.tsv"
38-
39-
with open(file_name, "r+") as f:
40-
data = f.read()
41-
f.close()
42-
amazon = mws.Feeds(MWS_ACCESS_KEY, MWS_SECRET_KEY, MERCHANT_ID)
43-
response = amazon.submit_feed(data, feed_type="_POST_FLAT_FILE_LISTINGS_DATA_",
44-
content_type="text/tab-separated-values;charset=iso-8859-1")
45-
46-
# In shell...
47-
48-
print response
49-
<Element '{http://mws.amazonaws.com/doc/2009-01-01/}SubmitFeedResponse' at 0x8edaa4c>
50-
51-
```
52-
For more information, check out the [Products API Documentation](https://developer.amazonservices.com/gp/mws/api.html/182-2079318-8524647?ie=UTF8&section=products&group=products&version=latest).
53-
54-
Here's another example in which i use python-amazon-mws to query amazon for a product using the product's UPC
55-
56-
```python
57-
from mws import mws
58-
59-
MWS_ACCESS_KEY = 'your key'
60-
MWS_SECRET_KEY = 'your secret'
61-
MERCHANT_ID = 'your merchantid'
62-
MARKETPLACE_ID = 'your marketplaceid'
63-
UPC = "886039397430"
64-
65-
amazon = mws.Products(MWS_ACCESS_KEY, MWS_SECRET_KEY, MERCHANT_ID)
66-
response = amazon.list_matching_products(MARKETPLACE_ID, UPC)
67-
68-
# In shell...
69-
70-
print response
71-
<Element '{http://mws.amazonservices.com/schema/Products/2011-10-01}ListMatchingProductsResponse' at 0xa1b188c>
72-
73-
```
18+
Checkout the documentation [here](http://code.google.com/p/amazon-mws-python).
19+
You can read the official Amazon MWS documentation [here](https://developer.amazonservices.com/).
7420

7521
# To-Do
7622

77-
* Update README
23+
* Improve README
7824
* Create tests
7925
* Finish InboundShipments & OutboundShipments APIs
80-
* Build Docs
26+
* Finish Docs
8127

8228
# Contribute
8329

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
# Add any paths that contain custom static files (such as style sheets) here,
121121
# relative to this directory. They are copied after the builtin static files,
122122
# so a file named "default.css" will overwrite the builtin "default.css".
123-
html_static_path = ['_static']
123+
html_static_path = ['static']
124124

125125
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
126126
# using the given strftime format.

docs/source/feeds.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
############
2+
Feeds
3+
############
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
############################
2+
Fulfillment Inbound Shipment
3+
############################
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
############################
2+
Fulfillment Inventory
3+
############################
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#############################
2+
Fulfillment Outbound Shipment
3+
#############################

docs/source/index.rst

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,36 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6+
#############################################
67
Welcome to Python Amazon MWS's documentation!
7-
=============================================
8+
#############################################
89

9-
Contents:
10+
***************
11+
Getting Started
12+
***************
1013

1114
.. toctree::
12-
:maxdepth: 2
15+
:maxdepth: 2
16+
17+
installation.rst
18+
tutorial_1.rst
19+
20+
21+
********
22+
APIs
23+
********
24+
25+
.. toctree::
26+
:maxdepth: 1
27+
28+
feeds.rst
29+
reports.rst
30+
fulfillmentInboundShipment.rst
31+
fulfillmentInventory.rst
32+
fulfillmentOutboundShipment.rst
33+
orders.rst
34+
products.rst
35+
sellers.rst
1336

1437

1538

docs/source/installation.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Installation
2+
=============
3+
This process assumes you have already created an Amazon Marketplace Webservices (MWS) account.
4+
5+
Setup API Access
6+
---------------------
7+
8+
* Go to https://developer.amazonservices.com (or .ca/.de/.jp/.fr/.co.uk)
9+
* Click on the *Sign up for MWS* button and follow the instructions.
10+
* At the end you must have a screen (print it and save it !)
11+
This screen will contain the following credentials:
12+
* Merchant Id (or Seller Id) - This is your unique merchant/seller ID
13+
* Marketplace Id - This is the id for the marketplace you are selling on.
14+
It allows you to target specific markerplaces (US, Japan, Europe, etc..) in which you are authorized to sell.
15+
* Access key - Used to identify the user of this API.
16+
* Secret key - This is used to authenticate every request sent to Amazon
17+
Make sure to keep this confidential as these credentials can potentially compromise your account.
18+
19+
20+
Test API Access
21+
-----------------
22+
23+
* Go to https://mws.amazonservices.com/scratchpad/index.html (you can change the domain .com like before)
24+
* In API selection, choose **Products** and *ListMatchingProducts*
25+
* In Authentication put your credentials.
26+
* Input the desired MarketplaceId and put "python" in Query
27+
* Click on the submit button
28+
29+
If everything is good, you can see a response 200 and a list of item matching python
30+
31+
32+
Install MWS Python API :)
33+
-------------------------
34+
35+
Currently you have to checkout the git repo and run ./setup.py install
36+

docs/source/orders.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
############
2+
Orders
3+
############

0 commit comments

Comments
 (0)