Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 510 Bytes

File metadata and controls

19 lines (16 loc) · 510 Bytes

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"){
       ...
    }
}