35 lines
760 B
Python
35 lines
760 B
Python
import requests
|
|
from requests.auth import HTTPBasicAuth
|
|
import json
|
|
|
|
url = "https://northpass.atlassian.net/wiki/rest/api/content/2210463745/child/page"
|
|
|
|
#auth = HTTPBasicAuth("bnJhc211c3NlbkBub3J0aHBhc3MuY29tOnFmOUlsN1g0d2t0aGdRS0JPSWx5NTczNw==")
|
|
auth = HTTPBasicAuth("nrasmussen@northpass.com", "qf9Il7X4wkthgQKBOIly5737")
|
|
|
|
headers = {
|
|
"Accept": "application/json",
|
|
}
|
|
|
|
#payload = json.dumps( {
|
|
# "type":"page",
|
|
# "ancestors":[{"id":2210463745}],
|
|
# "space":
|
|
# {"key":"~350535240"},
|
|
# } )
|
|
|
|
response = requests.request(
|
|
"GET",
|
|
url,
|
|
headers=headers,
|
|
auth=auth
|
|
)
|
|
|
|
jsonResponse = response.json()
|
|
for response in jsonResponse['results']:
|
|
if response['title'] == 'Flink':
|
|
print("Found")
|
|
print(response['title'])
|
|
|
|
|