files.get_one 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 //common example start $fileobj = new FilesWikidotMeta($SiteName, $Client); $returnarray = array(); echo "

files.get_one example



"; //change $PageName to the page containing the file $PageName = "CATEGORY:PAGENAME"; $fileobj->setPage($PageName); //change the $filename to the file of interest $filename = "FILENAME.EXT"; $fileobj->php_files_get_one($filename, $returnarray); foreach ($returnarray as $key=>$file){ echo $key."=>".$file."
";} ?>