You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/02/21 16:44:55 UTC

[GitHub] jthomas closed pull request #3320: Add base64 example for PHP

jthomas closed pull request #3320: Add base64 example for PHP
URL: https://github.com/apache/incubator-openwhisk/pull/3320
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/webactions.md b/docs/webactions.md
index 5f69137fed..2aaa6085b1 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


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services