项目作者: sajagjain

项目描述 :
This repository helps you in sending Signed Post Request to API Gateway with API Key Support
高级语言: C#
项目地址: git://github.com/sajagjain/APIGatewayRequestSignerWithAPIKeySupport.git


APIGatewayRequestSignerWithAPIKeySupport

NOTE: Make sure to type your json with double quotes. Single quotes does not work while parsing the data

Program.cs Line 22 to 29 - Change the below code with your configuration and you are good to go.

  1. _accessKey = "<your_access_key>";
  2. _secretKey = "<your_secret_key>";
  3. _service = "execute-api";
  4. _region = "us-east-2";
  5. _requestUri = new Uri("your_api_gateway_endpoint");
  6. //Make sure to type your json with double quotes. Single quotes does not work while parsing the data
  7. _json = "{\"type\":\"dog\",\"price\":2008}";
  8. _x_api_key = "<api_key_value_if_configured>";