Skip to content

Commit

Permalink
docs (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobspadger committed Mar 29, 2018
1 parent 01ab24f commit 3951efc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ To use Royal Mail Rest API in a project:
(this is from the example.py file which will be updated, its worth looking there)

.. code-block:: python
import json
from royal_mail_rest_api.tools import RoyalMailBody
from royal_mail_rest_api.shipping import ShippingApi
Expand Down
6 changes: 3 additions & 3 deletions royal_mail_rest_api/shipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@


class ShippingApi(RoyalMailBaseClass):
"""
Royal Mail Shipping Class, used to communicate with the Royal Mail Rest API to create labels
"""
token_url = '/shipping/v2/token'
post_domestic_url = '/shipping/v2/domestic'
delete_shipment_url = '/shipping/v2/'
Expand Down Expand Up @@ -167,6 +170,3 @@ def put_manifest(self, sales_order_number=None, manifest_batch_number=None):
headers=self.tokenheader)
result.raise_for_status()
return result.json()



0 comments on commit 3951efc

Please sign in to comment.