kensvin commited on
Commit
b516e31
·
1 Parent(s): 784859f

first time true

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -54,13 +54,14 @@ import json
54
  def request_product_id(shop_domain, product_key):
55
  ENDPOINT = "https://gql.tokopedia.com/graphql/PDPGetLayoutQuery"
56
  payload = {
57
- "operationName": "PDPGetLayoutQuery",
58
- "variables": {
59
- "shopDomain": shop_domain,
60
- "productKey": product_key,
61
- "layoutID": "",
62
- "apiVersion": 1
63
- }
 
64
  }
65
  headers = {
66
  'authority': 'gql.tokopedia.com',
 
54
  def request_product_id(shop_domain, product_key):
55
  ENDPOINT = "https://gql.tokopedia.com/graphql/PDPGetLayoutQuery"
56
  payload = {
57
+ "operationName": "PDPGetLayoutQuery",
58
+ "variables": {
59
+ "shopDomain": shop_domain,
60
+ "productKey": product_key,
61
+ "layoutID": "",
62
+ "apiVersion": 1,
63
+ "firstTime": True,
64
+ },
65
  }
66
  headers = {
67
  'authority': 'gql.tokopedia.com',