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 4b8b693

Browse files
committed
F
1 parent 000b6a3 commit 4b8b693

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

‎.env‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ apiTokenold = 6o6ct7hro4s9ad6332haramrk2z1atl
22
apiToken = 8qk3m1ywumt97pn9lv6cb3zguvmkvmx
33
apiStoreHash = 4zjutairi8
44

5-
appClientSecret = 18ee9612d7fbe54ca19f4c5005e871070088c5182af1348803198fb69cbe1558
6-
appClientId = t3m0jh3bbg8dcqnwd5xcy3u9o41vmyz
5+
appClientSecret = 7af272cdd2072f5f1b2f47d7b10bdf2be6d8279c815fb9186e1fcbbe3c8035a2
6+
appClientId = pfzb82nkacn8hdq9eqx5v8edoze2u29
77

88
callBackURL = https://dd6100868f41.ngrok.io/cb/auth
99

10-
DB_NAME = def7fp7u5sfj6j
11-
DB_USER = ywrpximushfior
12-
DB_PASSWORD = a23c1b16cc8ffde9c0e806125e88a4aa4272aa0a39c25f136c7e707d92a2f8a0
13-
DB_HOST = ec2-54-157-234-29.compute-1.amazonaws.com
10+
DB_NAME = d3a0kfm45v7d5f
11+
DB_USER = nvxfxscbsspdpk
12+
DB_PASSWORD = 92efc35c15db87c5f0776caa8c0aacdd445609199c8a87a872834a91ac06c26b
13+
DB_HOST = ec2-34-237-247-76.compute-1.amazonaws.com

‎api/views.py‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +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)
23-
24-
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)
2523

2624

2725

2826

2927

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

‎dashboard/views.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def dashBoard(request):
1616
a = BigcommerceApi.oauth_verify_payload(signed_payload, client_secret())
1717
store_hash = a['store_hash']
1818
print(store_hash)
19+
1920
return render(request ,'index.html')
2021

2122
return HttpResponse('Some thing Went Wrong')

0 commit comments

Comments
(0)

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