We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b369f9a commit 7c82189Copy full SHA for 7c82189
sampleAppOAuth2/services.py
@@ -88,6 +88,9 @@ def getCompanyInfo(access_token, realmId):
88
headers = {'Authorization': auth_header, 'accept': 'application/json'}
89
r = requests.get(settings.SANDBOX_QBO_BASEURL + route, headers=headers)
90
status_code = r.status_code
91
+ if status_code != 200:
92
+ response = ''
93
+ return response, status_code
94
response = json.loads(r.text)
95
return response, status_code
96
0 commit comments