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用英文,號分隔.