forked from IntuitDeveloper/SampleApp-QuickBooksV3API-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontext.py
More file actions
16 lines (12 loc) · 665 Bytes
/
context.py
File metadata and controls
16 lines (12 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from configRead import consumerTokens
# The context class sets the realm id with the consumer tokens every time user authorizes an app for their QB company
class RequestContext:
def __init__(self, realm_id, access_key, access_secret):
consumer_tokens = consumerTokens()
self.consumer_key = consumer_tokens.consumer_key
self.consumer_secret = consumer_tokens.consumer_sec
self.realm_id = realm_id
self.access_key = access_key
self.access_secret = access_secret
def print_context(self):
print self.consumer_key, self.consumer_secret, self.realm_id, self.access_secret, self.access_key