} break; case 'getCategories': header("content-type: text/xml"); $auth = new Auth($apikey, $secret); if ($auth->isAuthenticate()) { $article = new Article(); print $article->getCategories(); } break; case 'getSections': header("content-type: text/xml"); $auth = new Auth($apikey, $secret); if ($auth->isAuthenticate()) { $article = new Article(); print $article->getSections(); } break; case 'getCategoriesBySection': header("content-type: text/xml"); $auth = new Auth($apikey, $secret); if ($auth->isAuthenticate()) { $article = new Article(); print $article->getCategoriesBySection(); } break; case 'publish_article': $auth = new Auth($apikey, $secret); if ($auth->isAuthenticate()) { $article = new Article(); $article->sync($_POST);