This is an automated email from the ASF dual-hosted git repository. jamesthomas pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push: new 25c5751 Add base64 example for PHP (#3320) 25c5751 is described below commit 25c5751d7c62d685eeff6f692329fe342abb8dd6 Author: Lorna Jane Mitchell <git...@lornajane.net> AuthorDate: Wed Feb 21 16:44:51 2018 +0000 Add base64 example for PHP (#3320) --- docs/webactions.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/webactions.md b/docs/webactions.md index 5f69137..2aaa608 100644 --- a/docs/webactions.md +++ b/docs/webactions.md @@ -380,6 +380,18 @@ func main(args: [String:Any]) -> [String:Any] { } ``` +#### PHP + +```php +<?php + +function main(array $args) : array +{ + $decoded = base64_decode($args['__ow_body']); + return ["body" => $decoded]; +} +``` + As an example, save the Node function as `decode.js` and execute the following commands: ```bash $ wsk action create decode decode.js --web raw -- To stop receiving notification emails like this one, please contact jamestho...@apache.org.