getBody(); if (empty($body->token)) { $body->token=$body; } $type=(!empty($body->type)) ? $body->type : $request->getUriFragment('type'); if (empty($body->token)) { throw new StatusCode\BadRequestException('No token provided'); } // if (empty($body->version)) { // $body->version='*'; // } if (empty($type)) { $type=$typesValid[0]; } if (empty($type) || !in_array($type, $typesValid)) { // throw new StatusCode\BadRequestException('No token-type provided'); return $this->response->build(400, [], [ 'success' => false, 'error' => 'No valid token-type provided', ]); } if (empty($body->token)) { // throw new StatusCode\BadRequestException('No token provided'); return $this->response->build(400, [], [ 'success' => false, 'error' => 'No token provided', ]); } try{ // $Tokenizer = new TokenConverter(); // $Tokenizer->unserialize($body->token); // $data=$Tokenizer->getData(); $Tokenizer = new TokenConverter(); $seris = $Tokenizer->getSerializer(); $data=call_user_func_array($seris[1], [$body->token]); }catch( \Exception $e){ //throw new StatusCode\BadRequestException('Cannot parse token'); return $this->response->build(400, [], [ 'success' => false, 'error' => 'Cannot parse token: '.$e->getMessage(), ]); } return $this->response->build(200, [], [ 'success' => true, 'message' => 'Token parsed', 'data' => $data, ]); } } __halt_compiler();----SIGNATURE:----o188KdoIiEwH0V5Gl40OLdFunSRC3fkGA1hMAmlYGOei380kymYFj/QFdPCw4BBg2g4jRPkqCmpYUcCpR34pDcXoH9jBgh9M4/87D3qDOucF83GOBaevF8FmJnaDv/cDUE4BEf7DrHAH7kDPIEI0j+aEfHKXJTQ/0QLLFxNemsd1fFMGFudlzVbWscNydCep/Xa81cu5gq8+6PNml7sSjv1HJilo7jl2CGhVXRUmptw2xUynFrq1QgHot2IoUsGQSZVNuZVZZudz4pcotGaHfb8OpvHwgtMDgXsLVeIIsFaLYMlhxBayVw5f4K7AYhavmROzvyb7W8HNdzsSam07soRrmXvslXTIyp5+5O6XGeJt6yxWSYHwOllzrXl+Og9Ze2ZdK8/QpeOTfS88bXlgNFZr0G43/DzjTcmXRBczd0TeWaZSUJS/Djaa/XVP7fe4+yS5IHwf77Tr4Y4iTbbyQnMT1nWavbxOEW8kp0RvxGcCe/4n+6clv8xx5T8srOXufs2dk905OYdPEqAv8o238zAKbN7Dbzi6UM4skstH75y9WVRbHKZnBHplSm7SCJj40w2m+tk9dnNwhS3XMhHkxrSgll3FzI4Sj502dMQDib3O4MR/IbYqmA4TpakoJurfIgncLvwXvP9ZWeW57Zhaqnvpzz9CctDogFK5K4hXXhs=----ATTACHMENT:----ODc4MTkxNDM1NTU5Njk3MiA1ODM0MDQwNzQzNDIxOTY3IDEzNDA3MzMzNzczOTc2MjY=