Skip to content

Commit

Permalink
docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobspadger committed Mar 26, 2018
1 parent 73b3dd2 commit 0ef8ba1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions royal_mail_rest_api/royal_mail_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,21 @@ class TrackingApi(RoyalMailBaseClass):
summary_url = 'mailPieces/{}/summary'

def __init__(self, client_id, client_secret):
"""
Instantiate, store client_id and secret, build headers
:param client_id:
:param client_secret:
"""
self.client_id = client_id
self.client_secret = client_secret
self._create_headers()


def _create_headers(self):
"""
Create the required headers for interacting with the tracking api
:return: Nothing
"""
self.header = {'X-IBM-Client-Id': self.client_id,
'X-IBM-Client-Secret': self.client_secret,
'accept': 'application/json'}
Expand Down

0 comments on commit 0ef8ba1

Please sign in to comment.