I'm trying to create a webhook task to post a request to the Amazon Cognito user pools API. I'm having trouble figuring out the HTTP header that's required for signing the request. Has anyone else figured out a solution for invoking an AWS API from AppSheet? As always, any guidance is appreciated.
Solved! Go to Solution.
I got this working with this library you shared.
function DescribeUserPool() {
AWS.init('accessKey', 'secretKey')
let service = 'cognito-idp'
let action = 'AWSCognitoIdentityProviderService.DescribeUserPool'
let params = {}
let region = 'us-east-1'
let method = 'POST'
let payload = {'UserPoolId': 'userPoolId'}
let headers = {'Content-Type': 'application/x-amz-json-1.1'}
let response = AWS.request(service,action,params,region,method,payload,headers)
Logger.log(response)
}
User | Count |
---|---|
15 | |
14 | |
8 | |
7 | |
4 |