Use restCall object for functions that makes requests (#841)

* Use restCall object for functions that makes requests
This commit is contained in:
Anton Rusakov
2017-05-11 17:46:16 +01:00
committed by Jay
parent d56305fe63
commit 8d157c3233
3 changed files with 14 additions and 14 deletions

View File

@@ -505,9 +505,10 @@ class OpenIdUserinfo extends PayPalResourceModel
* @param array $params (allowed values are access_token)
* access_token - access token from the createFromAuthorizationCode / createFromRefreshToken calls
* @param ApiContext $apiContext Optional API Context
* @param PayPalRestCall $restCall
* @return OpenIdUserinfo
*/
public static function getUserinfo($params, $apiContext = null)
public static function getUserinfo($params, $apiContext = null, $restCall = null)
{
static $allowedParams = array('schema' => 1);
@@ -527,7 +528,8 @@ class OpenIdUserinfo extends PayPalResourceModel
'Authorization' => "Bearer " . $params['access_token'],
'Content-Type' => 'x-www-form-urlencoded'
),
$apiContext
$apiContext,
$restCall
);
$ret = new OpenIdUserinfo();