我知道如何通过标题检索 Confluence 中的页面
res = requests.get(BASE_URL + "/confluence/rest/api/content", params={"title": "parent page title"} , auth=("username", "pass"))
Run Code Online (Sandbox Code Playgroud)
https://developer.atlassian.com/confdev/confluence-rest-api/confluence-rest-api-examples
如何检索给定父页面标题的所有子页面?
我有2个模块,每个模块都读取环境变量.在主模块中,它被正确读取而在另一个模块中没有:
--Main module
import Module2
startApp :: IO ()
startApp = do
port <- liftM read $ getEnv "PORT" -- ok
print $ "Listening the port " ++ (show port) ++ "..." -- ok
run port app
-- it's not called immediately
myFMain = do
Module2.myF
--.........
--Module2
----...........
myF :: IO MyData
myF = do
env <- liftM read $ getEnv "ENV" :: IO String
print $ "ENV is " ++ (show env) -- error Prelude.read: no parse
--......... …Run Code Online (Sandbox Code Playgroud)