Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0f58783

Browse files
committed
G
1 parent 4b8b693 commit 0f58783

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎api/views.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
def client_secret():
1414
return config('appClientSecret')
1515

16-
# def authKey(request):
17-
# signed_payload = request.GET.get('signed_payload')
18-
# a = BigcommerceApi.oauth_verify_payload(signed_payload, client_secret())
19-
# store_hash = a['store_hash']
20-
# obj = get_object_or_404(Auth, storehash=store_hash)
21-
# token = obj.token
22-
# print(token)
16+
def authKey(request):
17+
signed_payload = request.GET.get('signed_payload')
18+
# a = BigcommerceApi.oauth_verify_payload(signed_payload, client_secret())
19+
# store_hash = a['store_hash']
20+
# obj = get_object_or_404(Auth, storehash=store_hash)
21+
# token = obj.token
22+
print(signed_payload)
2323

2424

2525

2626

2727

2828
# Function to GET BigComerce Orders
2929
def orders(request):
30-
print(request)
30+
authKey(request)
3131
url = 'https://api.bigcommerce.com/stores/' + config('apiStoreHash') + '/v2/orders'
3232
headers = {'X-Auth-Token': config('apiToken') , 'Accept': 'application/json', 'host':'api.bigcommerce.com' ,'Content-Type': 'application/json'}
3333
r = requests.get(url, headers=headers)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /