I have authenticated with Facebook and have the following:
- accessKeyId
- secretAccessKey
- identityId
- sessionToken
How can I call my api in API Gateway (without generating an sdk)?
I have authenticated with Facebook and have the following:
How can I call my api in API Gateway (without generating an sdk)?
I know this is an old question, but I found an answer for it using Postman.
This is the essence of it from AWS docs:
- Launch Postman.
- Enter the endpoint URL of a request in the address bar and choose the appropriate HTTP method from the drop-down list to the left of the address bar.
- If required, choose the Authorization tab. Choose AWS Signature for the authorization Type. Enter your AWS IAM user's access key ID in the AccessKey input field. Enter your IAM user secret key in SecretKey. Specify an appropriate AWS region that matches the region specified in the invocation URL. Enter
execute-api
in Service Name.
This will work to successfully call a API Gateway. Only if a User Pool and Identity Pool have been correctly set-up, and the Authorization
attribute in the Method Request
setting for the API Gateway resource is set to AWS_IAM
.
For more information about the AWS Signature for api calls check out this SO post. While this SO post contains some more information, with pictures, about how to make a API Gateway request in Postman.