pages.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 $pageobj = new WikidotPage($SiteName, $Client); $returnarray = array(); echo "

pages.get_one example



"; $pageobj->setPage("CATEGORY:EXISTINGPAGE"); if($pageobj->php_pages_get_one($returnarray)){ echo "Success
"; echo "
"; $tagarray = $returnarray[tags]; echo "Fullname: ".$returnarray[fullname]."
". "Created At: ".$returnarray[created_at]."
". "Created By: ".$returnarray[created_by]."
". "Updated At: ".$returnarray[updated_at]."
". "Updated By: ".$returnarray[updated_by]."
". "Title: ".$returnarray[title]."
". "Parent Fullname: ".$returnarray[parent_fullname]."
". "Rating: ".$returnarray[rating]."
". "Revisions: ".$returnarray[revisions]."
". "Page Title: ".$returnarray[parent_title]."
". "Children: ".$returnarray[children]."
". "Content: ".$returnarray[content]."
". "Comments: ".$returnarray[comments]."
". "Commented At: ".$returnarray[commented_at]."
". "Commented By: ".$returnarray[commented_by]."
"; foreach($tagarray as $key=>$tagdata){ echo "Tag ".$key." : ".$tagdata."
";} echo "
Page HTML Below

".$returnarray[html]."

";} ?>