-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathjson_data.py
More file actions
27 lines (24 loc) · 956 Bytes
/
json_data.py
File metadata and controls
27 lines (24 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# These are the location filters, also retrieved from Charles Proxy. Once copied, these don't need to be updated unless you want to update your filters
search_json_data = {
"apiVersion": "V2",
"filters": {
"serviceAreaFilter": [
"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
"x",
"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
],
"timeFilter": {},
},
"serviceAreaIds": [
"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
],
}
def accept_json_data(offerID):
# This is the json data needed to accept a block, it takes an argument to extract the offer ID for the selected block
return {
"__type": "AcceptOfferInput:http://internal.amazon.com/coral/com.amazon.omwbuseyservice.offers/",
"offerId": offerID,
}