def setUp(self): cred = PartnerCredentials( consumer_key='KeyToTheKingdom', consumer_secret='TellNoOne', callback_uri='CallOnlyWhenCalledTo', ) self.manager = Manager('', credentials=cred)
def setUp(self): cred = PartnerCredentials( consumer_key='KeyToTheKingdom', consumer_secret='TellNoOne', callback_uri='CallOnlyWhenCalledTo', ) self.myob = Myob(cred) self.request_headers = { 'Authorization': 'Bearer None', 'x-myobapi-cftoken': None, 'x-myobapi-key': 'KeyToTheKingdom', 'x-myobapi-version': 'v2' }
def setUp(self): cred = PartnerCredentials( consumer_key='KeyToTheKingdom', consumer_secret='TellNoOne', callback_uri='CallOnlyWhenCalledTo', companyfile_credentials={CID: '!encoded-userpass='******'Authorization': 'Bearer None', 'x-myobapi-cftoken': '!encoded-userpass='******'x-myobapi-key': 'KeyToTheKingdom', 'x-myobapi-version': 'v2' }