confluence script get
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
# G2
|
# G2
|
||||||
|
|
||||||
!*!
|
|
||||||
## 8/12/2022
|
## 8/12/2022
|
||||||
### Kick off Call!
|
### Kick off Call!
|
||||||
* How can I be helpful for the first week?
|
* How can I be helpful for the first week?
|
||||||
@ -37,9 +36,7 @@ They feel like this has been talked about for a longtime. Just waiting for a GO
|
|||||||
* [X] Register Button Copy > Learn More
|
* [X] Register Button Copy > Learn More
|
||||||
* [ ] https://TBD.TBD.com
|
* [ ] https://TBD.TBD.com
|
||||||
* [X] Remove Learning Paths from Templates (Homepage + Subnav)
|
* [X] Remove Learning Paths from Templates (Homepage + Subnav)
|
||||||
!@#
|
|
||||||
|
|
||||||
!*!
|
|
||||||
## 09/02/2022
|
## 09/02/2022
|
||||||
### Meeting with Meesha & Sara re: Workato
|
### Meeting with Meesha & Sara re: Workato
|
||||||
* Meesha's Goal - best way to implement Northpass?
|
* Meesha's Goal - best way to implement Northpass?
|
||||||
@ -50,9 +47,7 @@ They feel like this has been talked about for a longtime. Just waiting for a GO
|
|||||||
* Katlin also wants to trigger an email for someone that starts a course but doesn't complete
|
* Katlin also wants to trigger an email for someone that starts a course but doesn't complete
|
||||||
* Lofty goals? Not yet, most will be on the marketo side
|
* Lofty goals? Not yet, most will be on the marketo side
|
||||||
* Setup customer MQL
|
* Setup customer MQL
|
||||||
!@#
|
|
||||||
|
|
||||||
!*!
|
|
||||||
## 10/03/2022
|
## 10/03/2022
|
||||||
* Make lessons on cards clickable - should enter course overview page.
|
* Make lessons on cards clickable - should enter course overview page.
|
||||||
* [ ] CTA button on overview page - back to courses?
|
* [ ] CTA button on overview page - back to courses?
|
||||||
@ -72,9 +67,7 @@ They feel like this has been talked about for a longtime. Just waiting for a GO
|
|||||||
* Erin to take over content & overall admin responsbilities
|
* Erin to take over content & overall admin responsbilities
|
||||||
* Certifications Launch in Q2 of 2023, maybe end of Q2 (April)
|
* Certifications Launch in Q2 of 2023, maybe end of Q2 (April)
|
||||||
* First Certifications Discussion Mid December to plant seed
|
* First Certifications Discussion Mid December to plant seed
|
||||||
!@#
|
|
||||||
|
|
||||||
!*!
|
|
||||||
## 10/02/2022
|
## 10/02/2022
|
||||||
* Wants to hear best practices on:
|
* Wants to hear best practices on:
|
||||||
* AppCues Cadence
|
* AppCues Cadence
|
||||||
@ -92,4 +85,3 @@ They feel like this has been talked about for a longtime. Just waiting for a GO
|
|||||||
* I recommended Accredible for multiple course certs. Badges are great for coures. Certs are great for a series of badges.
|
* I recommended Accredible for multiple course certs. Badges are great for coures. Certs are great for a series of badges.
|
||||||
* They would like to cert people on subjects. "Customer Marketing Certified", but they don't need to be buyer intent certified.
|
* They would like to cert people on subjects. "Customer Marketing Certified", but they don't need to be buyer intent certified.
|
||||||
* Certs would allow them to become more indepth. G2 is more than just a review site.
|
* Certs would allow them to become more indepth. G2 is more than just a review site.
|
||||||
!@#
|
|
||||||
|
|||||||
35
Scripts/confluence_get.py
Normal file
35
Scripts/confluence_get.py
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
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'])
|
||||||
|
|
||||||
|
|
||||||
|
#response = json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": "))
|
||||||
@ -7,6 +7,9 @@ import json
|
|||||||
url = "https://northpass.atlassian.net/wiki/rest/api/content"
|
url = "https://northpass.atlassian.net/wiki/rest/api/content"
|
||||||
|
|
||||||
#auth = HTTPBasicAuth("bnJhc211c3NlbkBub3J0aHBhc3MuY29tOnFmOUlsN1g0d2t0aGdRS0JPSWx5NTczNw==")
|
#auth = HTTPBasicAuth("bnJhc211c3NlbkBub3J0aHBhc3MuY29tOnFmOUlsN1g0d2t0aGdRS0JPSWx5NTczNw==")
|
||||||
|
# Find a page CURL
|
||||||
|
#curl -u admin:admin -X GET "http://localhost:8080/confluence/rest/api/content?title=myPage%20Title&spaceKey=TST&expand=history" | python -mjson.tool
|
||||||
|
|
||||||
auth = HTTPBasicAuth("nrasmussen@northpass.com", "qf9Il7X4wkthgQKBOIly5737")
|
auth = HTTPBasicAuth("nrasmussen@northpass.com", "qf9Il7X4wkthgQKBOIly5737")
|
||||||
|
|
||||||
headers = {
|
headers = {
|
||||||
@ -38,16 +41,6 @@ response = requests.request(
|
|||||||
|
|
||||||
response = 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)
|
print(response)
|
||||||
x = response.split()
|
#x = response.split()
|
||||||
print(x)
|
#print(x)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Update a page:
|
|
||||||
response = requests.request(
|
|
||||||
"PUT",
|
|
||||||
url,
|
|
||||||
data=payload,
|
|
||||||
headers=headers,
|
|
||||||
auth=auth
|
|
||||||
)
|
|
||||||
Binary file not shown.
Reference in New Issue
Block a user