小编Jud*_*udi的帖子

如何通过父页面标题检索 Confluence 中的所有子页面?

我知道如何通过标题检索 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

如何检索给定父页面标题的所有子页面?

python rest confluence

4
推荐指数
1
解决办法
1万
查看次数

无法解析另一个模块中的环境变量

我有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)

haskell

0
推荐指数
1
解决办法
82
查看次数

标签 统计

confluence ×1

haskell ×1

python ×1

rest ×1