Skip to content

Commit

Permalink
we did it
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilo59 committed May 1, 2018
1 parent 13dacdd commit 4a1bd74
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bt_expense/bt_expense.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
# os.chdir('bt_expense')

# Constants
# ENTER YOU BIGTIME STAFF_ID HERE
STAFF_ID = 00
BASE = 'https://iq.bigtime.net/BigtimeData/api/v2'
UTF = 'utf-8'
# Global Variables
Expand All @@ -30,9 +28,9 @@ class Authorizer(object):
User login and password will be used to obtain an API key.
If API key is provided, skip the step of obtaining API key"""

def __init__(self, workbook_filename='Expenses.xlsx', staffsid=None):
def __init__(self, workbook_filename='Expenses.xlsx'):
self.wb_name = workbook_filename
self.staffsid = staffsid
self.staffsid = None
self.auth_header = self._build_credentials()
self.userid = self.auth_header['userid']
self.userpwd = self.auth_header['pwd']
Expand Down Expand Up @@ -174,7 +172,7 @@ def json_to_file(json_obj, filename='data.json'):
print(__doc__)
print('**DIR:', os.getcwd())
print('*' * 79)
exp1 = Expensor(staffsid=STAFF_ID)
exp1 = Expensor()
exp_entries = exp1.prep_expenses()
print(len(exp_entries))
pp(exp1.post_expenses())

0 comments on commit 4a1bd74

Please sign in to comment.