First OAth2 Functional Implementation

This commit is contained in:
Erik Amaru Ortiz
2013-10-09 13:16:05 -04:00
parent dbd8ddbb5c
commit 507101f6dd
20 changed files with 2012 additions and 136 deletions

View File

@@ -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;