/Slack.NetStandard.Endpoint.ApiGatewayLambdaProxy

Slack Endpoint for AWS Lambda using API Gateway proxy

Primary LanguageC#MIT LicenseMIT

Slack.NetStandard.Endpoint.ApiGatewayLambdaProxy

Slack Endpoint for AWS Lambda using API Gateway proxy

Usage - Add it to your lambda

public Function(){
    var signingSecret = //retrieve signing secret...
    Endpoint = new APIGatewayEndpoint(signingSecret);
}

public Task<APIGatewayProxyResponse> FunctionHandler(APIGatewayProxyRequest input)
{
    var slackInfo = Endpoint.Process(input);
    if(slackInfo.Command != null && slackInfo.Command.Command == "/weather"){
       ...
    }
}