Created
November 4, 2019 10:08
-
-
Save nadar/aa3b09109cb0eb254126c0be26b0a33a to your computer and use it in GitHub Desktop.
assumption.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyAction extends BaseAction | |
{ | |
public function route(): string | |
{ | |
return '/call-this-server'; | |
} | |
public function run(array $params): \Heartbeat\RPA\ActionResponse | |
{ | |
return Client()->get('https://github.com').then(function($message), { | |
return new JsonResponse(200, $message); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment