pages.get_meta Test Start

setCredentials("USERNAME","API KEY"); $Client->setDebug($newdebuglevel); $Client->setSSLVerifyPeer(false); $Client->setSSLVerifyHost(false); $Client->return_type = "phpvals"; //forces return of page.get_one as php values $SiteName = "SITENAME"; ////////////test code ////////////code doesn't include error checking $metaobj = new WikidotMeta($SiteName, $Client); $returnarray = array(); echo "

pages.get_meta example



"; $Files = array("CATEGORY:FILE1", "CATEGORY:FILE2", "CATEGORY:FILE3", "CATEGORY:FILE4"); $metaobj->php_pages_get_meta($Files, $returnarray); foreach($returnarray as $filear){ foreach($filear as $key=>$data){ if($key == "tags"){ foreach($data as $tag) echo $key.":tag=> ".$tag."
";} else echo $key.": ".$data."
";} echo "


";} ?>