/** * * Overrides OAuth2::getAuthCode(). * * @return array */ protected function getAuthCode($code) { try { $code = new API_OAuth2_AuthCode($this->app, $code); return ['redirect_uri' => $code->get_redirect_uri(), 'client_id' => $code->get_account()->get_application()->get_client_id(), 'expires' => $code->get_expires(), 'account_id' => $code->get_account()->get_id()]; } catch (\Exception $e) { } return null; }
public function testGet_expires() { $this->assertInternalType('string', $this->object->get_expires()); }