new notes
This commit is contained in:
@ -17,14 +17,14 @@ headers = {
|
||||
|
||||
payload = json.dumps( {
|
||||
"type":"page",
|
||||
"title":"Test Expandable Page",
|
||||
"title":"Customer Name",
|
||||
"ancestors":[{"id":2210463745}],
|
||||
"space":
|
||||
{"key":"~350535240"},
|
||||
"body":
|
||||
{"storage":
|
||||
{"value":
|
||||
"<p>This is a new page</p> <ac:structured-macro ac:name='expand' ac:schema-version='1'><ac:rich-text-body><p>expandable content goes here</p></ac:rich-text-body></ac:structured-macro>",
|
||||
"<p>A Customer Page</p> <ac:structured-macro ac:name='expand' ac:schema-version='1'><ac:rich-text-body><p>Customer Content * Item1 * Item 2 1. Item3 2. Item 4</p></ac:rich-text-body></ac:structured-macro>",
|
||||
"representation":"storage"}}
|
||||
} )
|
||||
|
||||
@ -36,4 +36,18 @@ response = requests.request(
|
||||
auth=auth
|
||||
)
|
||||
|
||||
print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))
|
||||
response = json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": "))
|
||||
print(response)
|
||||
x = response.split()
|
||||
print(x)
|
||||
|
||||
|
||||
|
||||
# Update a page:
|
||||
response = requests.request(
|
||||
"PUT",
|
||||
url,
|
||||
data=payload,
|
||||
headers=headers,
|
||||
auth=auth
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user