Skip to content

Instantly share code, notes, and snippets.

@cookstaar
cookstaar / Slack interactive message mapping for AWS API Gateway Lambda
Last active July 17, 2017 15:56
Slack slash command for AWS API Gateway Lambda
application/x-www-form-urlencoded
#set ($encodedJSON = $input.body.substring(8))
$util.urlDecode(${encodedJSON})
<?php
trait Gettable {
/**
* Retrieve private attributes.
* Attributes should be protected
* so they cannot be *set* arbitrarily.
* This allows us to *get* them as if they
* were public.