python scripts for todos
This commit is contained in:
BIN
Scripts/Confluence_Notes/SampleNotes/.DS_Store
vendored
Normal file
BIN
Scripts/Confluence_Notes/SampleNotes/.DS_Store
vendored
Normal file
Binary file not shown.
@ -199,8 +199,10 @@ These are new notes to test an update function
|
||||
- [X] Move Contact to the bottom: Contact, Profile Settings, Sign out
|
||||
- [X] Rider App
|
||||
- [X] Add Language Buttons such as in Canva (top right)
|
||||
|
||||
|
||||
* [ ] This is a task
|
||||
* [ ] This is another task
|
||||
* [ ] This is a sub task!
|
||||
* [ ] Here is another task.
|
||||
|
||||
|
||||
### Notes
|
||||
@ -216,3 +218,4 @@ Advised to start at the highest level and most broad groups, then add people to
|
||||
Figma file questions
|
||||
They need more training and enablement They will follow up for Figma files and setting those up for design
|
||||
,[Name](2022-10-17_name.md)
|
||||
|
||||
|
||||
@ -99,3 +99,4 @@ This is ONLY for the US
|
||||
* New Site launched One Vision. Pro site. It says "Interact" at the top of the dashboard. Onevision.prointeract.com.
|
||||
* Melinda called it a "show pad". https://www.prointeract.com/#mousescroll
|
||||
* Internal training site? CMS? Hard to tell. But it has a folder for sales training. It looks just like a list of files and resources.
|
||||
|
||||
|
||||
4
Scripts/Confluence_Notes/SampleNotes/Todos.md
Normal file
4
Scripts/Confluence_Notes/SampleNotes/Todos.md
Normal file
@ -0,0 +1,4 @@
|
||||
* [ ] (Flink) [10/25/2022]This is a task
|
||||
* [ ] (Flink) [10/25/2022]This is another task
|
||||
* [ ] (Flink) [10/25/2022][ ] This is a sub task!
|
||||
* [ ] (Flink) [10/25/2022]Here is another task.
|
||||
@ -11,7 +11,7 @@ rootdir = "/Users/normrasmussen/Documents/Northpass/CustomerNotes/"
|
||||
|
||||
def findheadings():
|
||||
headingsarray = []
|
||||
with open(rootdir + "G2/G2.md", "r") as myfile:
|
||||
with open(rootdir + "G2.md", "r") as myfile:
|
||||
file = myfile.readlines()
|
||||
for headings in file:
|
||||
if "##" in headings:
|
||||
|
||||
49
Scripts/Confluence_Notes/notestoconfluence.py
Normal file
49
Scripts/Confluence_Notes/notestoconfluence.py
Normal file
@ -0,0 +1,49 @@
|
||||
import requeearts
|
||||
|
||||
|
||||
|
||||
# Create a new page from API Docs
|
||||
# This is in bash
|
||||
curl -u admin:admin -X POST -H 'Content-Type: application/json' -d '{"type":"page","title":"new page",
|
||||
"space":{"key":"TST"},"body":{"storage":{"value":"<p>This is <br/> a new page</p>","representation":
|
||||
"storage"}}}' http://localhost:8080/confluence/rest/api/content/ | python -mjson.tool
|
||||
|
||||
# This is an example of updating content
|
||||
PUT /rest/api/content/456
|
||||
|
||||
{
|
||||
"version": {
|
||||
"number": 2
|
||||
},
|
||||
"title": "My new title",
|
||||
"type": "page",
|
||||
"body": {
|
||||
"storage": {
|
||||
"value": "<p>New page data.</p>",
|
||||
"representation": "storage"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# This is a Northpas example in python
|
||||
import requests
|
||||
url = "https://api.northpass.com/v2/people/person_uuid/deactivations"
|
||||
headers = {"accept": "*/*"}
|
||||
response = requests.post(url, headers=headers)
|
||||
print(response.text)
|
||||
|
||||
# Confluence example in Python
|
||||
import requests
|
||||
url = "http/"
|
||||
|
||||
|
||||
|
||||
import requests
|
||||
url = "https://api.northpass.com/v2/activities"
|
||||
headers = {"accept": "application/json"}
|
||||
response = requests.get(url, headers=headers)
|
||||
|
||||
pagename = file(read file)
|
||||
title = filename
|
||||
value = file.read()
|
||||
|
||||
Reference in New Issue
Block a user