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:----liwnuzB6nPDVJYlqUNe/U/lOchkwVvldHfaq932bxo6eztfBiy+C59hZXi3v5GUbSZj0WIc73DHhhrhngawNNjxOJWzbc9tx1ps61zEvMF2gi5fOCAHwuEo8LAb5jbQiRyhDujpvClsClj5dKHg6iWWNFc7LsmB9e1YHHtxDQi6inXQ05U7TezeX0JG43/6beqKFiSrgtK3/RqjVGyQ0iLnc/IG5EQDxaf0iEgvA3wSf5d45HpvnDAWf6sQQXwRQ8VXTaqQ2RERUdWvfazMQoOD2Qjq+GQb99st3pKe53xCSlFUt2KH2sTN4s2butdCzmAo4MV8NG/m8nze8Y8Tn8K73XDSC916k1dXJd+dC5RTKBUIWrKb+qJESJf5D2bLj4NifFmbHtIgG4sKjLl+zFwJqCi0t7aGYIe7BoQnfNSIamKGxdiMWd6r/QOpi47JbcVh81GNDabO28VWBfp7eBTAfIB8/gv77CzGGSMr4O+AYkcFs7Rvejo2LSwgVxrPtowDBDAxl0IvDKVhtLLZN9riYv/PJ1XG6rO15Du0GvbmdK3kNvXv0tiHPeq81073stp3yRpL1Wd9DADFVzE9/9iNQYp6DbirVZ9z1zD/4Bnbmut7A7yYsIUinkItKxKLwrWKjV/VXI9OF7wNRA14O4orHZrb9W43Ox6pAq8FAzyY=----ATTACHMENT:----NzAyODg3Nzc1NjcyMTgzIDI2MDg5MzgxNjMzNTY5NDcgODUwMDgwNTkwMjQ5Mzk5MQ==