Skip to content

Commit a93a51d

Browse files
committed
Updated Changes
1 parent 920f691 commit a93a51d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import requests
22

3-
url = "https://hhy0xsskr8.execute-api.us-west-2.amazonaws.com/v1/UploadJson"
3+
url = "<Gateway URL>"
44

5-
image_binary = {
5+
datadict = {
66
"id" : "5645654645y65",
77
"body-json" : {
8-
"name": "refgdfgf",
9-
"id": 24534,
10-
"place" : "bng"
8+
"name": "max",
9+
"id": 2453243554,
10+
"place" : "NewYork"
1111
}
1212
}
1313

14-
APIGatewayKey = "GTUn6Fepnr8WWnLxYAT1c88HfWiRK7aN48qNyf0h"
14+
APIGatewayKey = "<API Gateway Key>"
1515
headers = {
16-
'Content-Type': 'application/png',
16+
'Content-Type': 'application/jsons',
1717
'x-api-key': APIGatewayKey
1818
}
1919

20-
response = requests.request("POST", url, headers=headers, json=image_binary)
20+
response = requests.request("POST", url, headers=headers, json=datadict)
2121

2222
print(response.text)

0 commit comments

Comments
 (0)