CMSware WEB API

使用方法: http://cmsware/api/index.php?password=***&o=***&id=***&sub=***

注意:结点更新、采集等功能可能需要很长的执行时间,建议使用CMSware shell来执行,如果你确实想用CMSwareWebAPI来调用,请设置php.ini的max_execution_time 为更大数值,否则会导致运行超时。

功能名称 o id sub 说明
更新结点首页 refreshNodeIndex NodeID[=1,2,3] 0或1 http://cmsware/api/index.php?password=xxx&o=refreshNodeIndex&id=1&sub=1
更新id为1(id=NodeID)的结点首页,多个id用英文,号分隔,sub为是否包含子结点(包含置1,否则置0).
更新结点附加发布 refreshNodeExtra NodeID[=1,2,3] 0或1 http://cmsware/api/index.php?password=xxx&o=refreshNodeExtra&id=1&sub=1
更新id为1(id=NodeID)的结点附加发布,多个id用英文,号分隔,sub为是否包含子结点(包含置1,否则置0).
更新结点内容页 refreshNodeContent NodeID[=1,2,3] 0或1 http://cmsware/api/index.php?password=xxx&o=refreshNodeContent&id=1&sub=1
更新id为1(id=NodeID)的结点内容页,多个id用英文,号分隔,sub为是否包含子结点(包含置1,否则置0).
发布结点内容页 publishNodeContent NodeID[=1,2,3] 0或1 http://cmsware/api/index.php?password=xxx&o=publishNodeContent&id=1&sub=1
发布id为1(id=NodeID)的结点内容页,多个id用英文,号分隔,sub为是否包含子结点(包含置1,否则置0).
更新附加发布 refreshExtra PublishID[=1,2,3] - http://cmsware/api/index.php?password=xxx&o=refreshExtra&id=1
发布id为1(id=PublishID)的结点内容页,多个id用英文,号分隔.
更新内容页 refreshContent IndexID[=1,2,3] - http://cmsware/api/index.php?password=xxx&o=refreshContent&id=1
更新id为1(id=IndexID)的内容页,多个id用英文,号分隔.
发布内容页 publishContent IndexID[=1,2,3] - http://cmsware/api/index.php?password=xxx&o=publishContent&id=1
发布id为1(id=IndexID)的内容页,多个id用英文,号分隔.
启动结点采集 collection CateID[=1,2,3] - http://cmsware/api/index.php?password=xxx&o=collection&id=1
启动结点id为1(id=CateID)的采集进程,多个id用英文,号分隔.