First OAth2 Functional Implementation
This commit is contained in:
@@ -3,9 +3,17 @@ namespace Services\Api\ProcessMaker;
|
||||
|
||||
class Application extends \ProcessMaker\Api
|
||||
{
|
||||
/**
|
||||
* Sample api protected with OAuth2
|
||||
*
|
||||
* For testing the oAuth token
|
||||
*
|
||||
* @access protected
|
||||
*/
|
||||
public function get($id)
|
||||
{
|
||||
$data = array(
|
||||
'USSER_LOGGED' => $this->getUserId(),
|
||||
"APP_UID" => $id,
|
||||
"PRO_UID" => "13885168416038181883131343548151",
|
||||
"DUMMY" => "sample data",
|
||||
@@ -17,7 +25,6 @@ class Application extends \ProcessMaker\Api
|
||||
|
||||
public function post($requestData = null)
|
||||
{
|
||||
$requestData;
|
||||
$requestData['processed'] = true;
|
||||
|
||||
return $requestData;
|
||||
|
||||
Reference in New Issue
Block a user