Skip to content

Commit

Permalink
move the examples into their own file for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobspadger committed Mar 29, 2018
1 parent 980658d commit fa130a1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions royal_mail_rest_api/shipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,4 @@ def put_manifest(self, sales_order_number=None, manifest_batch_number=None):
return result.json()


if __name__ == '__main__':
from royal_mail_rest_api.get_credentials import return_credentials
creds = return_credentials()

CLIENT_ID = creds['royal_mail']['CLIENT_ID']
CLIENT_SECRET = creds['royal_mail']['CLIENT_SECRET']
USERNAME = creds['royal_mail']['USERNAME']
PASSWORD_HASHED = creds['royal_mail']['PASSWORD_HASHED']

shipping_api = ShippingApi(CLIENT_ID, CLIENT_SECRET, USERNAME, PASSWORD_HASHED)
token = shipping_api.get_token()

0 comments on commit fa130a1

Please sign in to comment.