/** * @return GetTokenStatusResponseType * @param GetTokenStatusRequestType $request */ function GetTokenStatus($request) { $request->setVersion(EBAY_WSDL_VERSION); return $this->call('GetTokenStatus', $request); }
public function fetchTokenExpirationTime($SessionID) { // require_once 'GetTokenStatusRequestType.php'; // prepare request $req = new GetTokenStatusRequestType(); $req->setSessionID($SessionID); #$req->setErrorLanguage(0); // send request $res = $this->sp->GetTokenStatus($req); // TODO: handle error return $res->ExpirationTime; }