Removing test keys

This commit is contained in:
Kun Deng
2022-09-29 19:54:34 -04:00
parent fffeecde79
commit e6bdca14f3
+4 -18
View File
@@ -8,20 +8,6 @@ import requests
import Models import Models
"""
APP_ID = "3079e919-8f04-41b7-8b97-5694679bd4f3"
SECRET = "23379d03-b2a5-4dd2-a4d0-233b3b40588f"
SECRET = "v-Z8Q~iy~vA77IarV5izSqG0e3uX-qBtItFHudd2"
# "Notes.Create", "Notes.Read", "Notes.Read.All", "Notes.ReadWrite", "Notes.ReadWrite.All", "Notes.ReadWrite.CreatedByApp"
# SCOPES = ['']
SCOPES = ["Notes.Create", "Notes.Read", "Notes.Read.All", "Notes.ReadWrite", "Notes.ReadWrite.All", "Notes.ReadWrite.CreatedByApp"]
AUTHORITY_URL = "https://login.microsoftonline.com/consumers/"
base_url = "https://graph.microsoft.com/v1.0/"
endpoint = base_url + "me"
"""
class OneNoteManager(object): class OneNoteManager(object):
def __init__(self, token=None): def __init__(self, token=None):
@@ -152,11 +138,11 @@ class OneNoteManager(object):
self.__token = token self.__token = token
__APP_ID = "3079e919-8f04-41b7-8b97-5694679bd4f3" __APP_ID = "Enter app id"
__SECRET = "v-Z8Q~iy~vA77IarV5izSqG0e3uX-qBtItFHudd2" __SECRET = "Enter secret"
__SCOPES = ["Notes.Create", "Notes.Read", "Notes.Read.All", "Notes.ReadWrite", "Notes.ReadWrite.All", "Notes.ReadWrite.CreatedByApp"] __SCOPES = []
__AUTHORITY_URL = "https://login.microsoftonline.com/consumers/" __AUTHORITY_URL = "https://login.microsoftonline.com/consumers/"
__base_url = "https://graph.microsoft.com/v1.0/" __base_url = "https://graph.microsoft.com/v1.0/"
__endpoint = __base_url + "me" __endpoint = __base_url + "me"
__token = Models.ResponseToken() __token = Models.ResponseToken()