Files
luos/workflow/engine/src/ProcessMaker/Services/Api/Google/Authentication.php
Ronald Quenta 7c66b8c94b PM-3501 Move pmgmail authentication end point to the next branch 3.0.1.4
remove email

fix in message response
2015-09-17 14:09:16 -07:00

31 lines
709 B
PHP

<?php
namespace ProcessMaker\Services\Api\Google;
use \ProcessMaker\Services\Api;
use \Luracast\Restler\RestException;
class Authentication extends Api
{
/**
* Get token for user gmail
*
* @param array $request_data
*
* @return array
*
* @url POST /gmail
*
*
*/
public function doAuthenticationAccountGmail ($request_data) {
try{
$oGoogle = new \ProcessMaker\Services\Google\Authentication();
$response = $oGoogle->postTokenAccountGmail($request_data);
return $response;
} catch (\Exception $e){
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
}
}
}