File size: 473 Bytes
bfea304
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import json
from main import lambda_handler

event = {
    "headers": {
        "Content-Type": "application/json"
    },
    "body": json.dumps({
        "imgUrl": "https://iduploadbucket.s3.ap-south-1.amazonaws.com/DFaqQf.png",
        "brightness":1,
        "contrast":4,
        "saturation":4
    }),
    "httpMethod": "POST",
    "isBase64Encoded": False,
    "path": "/captchaSolver"
}

response = lambda_handler(event, None)
print(json.dumps(response, indent=4))