我是C#的初学者,也是第一次使用REST。
我想使用带有HTTP触发器的Azure函数,通过REST " get“从汇流页面获取内容。
我在ConfluenceUser文件中指定了ConfluenceAPI和ConfluenceDomain。
代码(Visual 2019):
using Microsoft.Extensions.Configuration;
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks
我正在尝试以JSON格式从Confluence页面获取表内容。这都是SSO,所以我只能使用API键,而且我还没有找到一种方法来访问请求库的Confluence。不幸的是,Confluence API的输出是普通的html。
到目前为止,这就是我所掌握的。汇流库可以以JSON格式输出表(而不是在字典中显示原始的html代码)吗?
from atlassian import Confluence
import os
user = "me@myself.com"
api_key = os.environ['confluence_api_key']
server =
使用REST ()自动创建汇流中的新页面非常简单。
但是,这会将新生成的站点添加到页面层次结构/页面导航的底部,如下所示:
+ Reports
+ Report for January
+ Report for February
+ Report for MARCH
+ NEWLY ADDED REPORT for APRIL
不过,最好还是把报告转过来(最新的报告比旧的报告更重要,所以应该放在第一位):
+ Reports
+ NEWLY ADDED REPORT for APRIL
+ Report for MARCH
+ Repor
嗨,我正在尝试使用美观汤和API请求来更新汇流页面的表内容之一。
这是我的密码。我能够找到并更新td,但无法将更新的td插入soup变量中。
content=requests.get(address,headers=headers).text
soup=BeautifulSoup(content,'html.parser')
for td in soup.find_all('td'):
if td == "<td> i need to update this </td>:
td.replace_with("<td&g
我正在尝试使用Confluence "get_all_pages_from_space“检索汇流空间中的所有页面(总计约400个)。
# Get all pages from Space
# content_type can be 'page' or 'blogpost'. Defaults to 'page'
# expand is a comma separated list of properties to expand on the content.
# max limit is 100. For more you have to
我一直在寻找一个纯HTML和jQuery示例,说明如何使用他们的REST在汇流中创建页面。我发现了以下例子,但它们都不适合我:
示例A
var username = "admin";
var password = "admin";
var jsondata = {"type":"page",
"title":"My Test Page",
"space":{"key":"TST"},
"body":{
我试图使用以下代码更新一个汇流页面:
守则是:
public class Confluence {
/**
* Demonstrates how to update a page using the Conflunence 5.5 REST API.
*/
private static final Logger LOGGER = Logger.getLogger(Confluence.class);;
private static final String BASE_URL = "http://confluence:8080";
private static final S
我正在尝试编写一个Python脚本,它将使用以下命令从一个空间复制空间,并在另一个空间中使用以下命令在另一个服务器中创建空间:
pages = sourceConfluence.get_all_pages_from_space(space = source_Space, start=0, limit=100, status=None, expand='body.storage.content', content_type='page')
for i in pages:
status = destConfluence.create_page(space =