returns user details
public static getUserinfo ( array $params, |
||
$params | array | (allowed values are access_token) access_token - access token from the createFromAuthorizationCode / createFromRefreshToken calls |
$apiContext | Optional API Context | |
return |
/** * @test */ public function testInvalidParamUserInfoCall() { $this->setExpectedException('PayPal\\Exception\\PPConnectionException'); PPOpenIdUserinfo::getUserinfo(array('access_token' => 'accessToken')); }