public function get($key){
        $url = $this->authenticationService->getServerEndPoint() . Endpoints::VERSION . Endpoints::BASE_META . Endpoints::META;

        $result = $this->authenticationService->getTransport()->fetch($url,array("key"=>$key));

        if($result["code"] == APIResponse::RESPONSE_SUCCESS){
            $unwrapped = @json_decode($result['results']['value']);
            $value = $unwrapped === null ? $result['results']['value'] : $unwrapped;
            return array("value" => $value, "validity" => $result['results']['validity']);
        }else{
            return null;
        }
    }
public function get($key){
        $url = $this->authenticationService->getServerEndPoint() . Endpoints::VERSION . Endpoints::BASE_META . Endpoints::META;

        $result = $this->authenticationService->getTransport()->fetch($url,array("key"=>$key));

        if($result["code"] == APIResponse::RESPONSE_SUCCESS){
            $unwrapped = @json_decode($result['results']['value']);
            $value = $unwrapped === null ? $result['results']['value'] : $unwrapped;
            return array("value" => $value, "validity" => $result['results']['validity']);
        }else{
            return null;
        }
    }
public function get ( $ key ) { $ url = $ this -> authenticationService -> getServerEndPoint ( ) . Endpoints :: VERSION . Endpoints :: BASE_META . Endpoints :: META ; $ result = $ this -> authenticationService -> getTransport ( ) -> fetch ( $ url , array ( "key" => $ key ) ) ; if ( $ result [ "code" ] == APIResponse :: RESPONSE_SUCCESS ) { $ unwrapped = @ json_decode ( $ result [ 'results' ] [ 'value' ] ) ; $ value = $ unwrapped === null ? $ result [ 'results' ] [ 'value' ] : $ unwrapped ; return array ( "value" => $ value , "validity" => $ result [ 'results' ] [ 'validity' ] ) ; } else { return null ; } }
Gets the stored meta data for the key provided
@param $key
@return array
Gets the stored meta data for the key provided