posts.get 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 $siteobj = new WikidotSite($SiteName, $Client); $returnarray = array(); echo "

posts.get example



"; //change setSite method call to your site $siteobj->setSite("SITENAME"); //change to permanent link id of posts to get $posts = array("POSTID1", "POSTID2"); $siteobj->php_posts_get($posts, $returnarray); foreach($returnarray as $key=>$data){ foreach($data as $dkey=>$pdat){ echo $key.": ".$dkey."=>".$pdat."
";}} ?>