我正在嘗試將我的OneDrive用於與Python的業務。身份驗證OneDrive Python API
我已經安裝了onedrivesdk,現在我在驗證的過程中我OneDrive
提供的代碼如下
import onedrivesdk
redirect_uri = 'http://localhost:8080/'
client_secret = 'your_client_secret'
client_id='your_client_id'
api_base_url='https://api.onedrive.com/v1.0/'
scopes=['wl.signin', 'wl.offline_access', 'onedrive.readwrite']
http_provider = onedrivesdk.HttpProvider()
auth_provider = onedrivesdk.AuthProvider(
http_provider=http_provider,
client_id=client_id,
scopes=scopes)
client = onedrivesdk.OneDriveClient(api_base_url, auth_provider, http_provider)
auth_url = client.auth_provider.get_auth_url(redirect_uri)
我不知道什麼是client_secret和CLIENT_ID我應該提供獲得訪問我的OneDrive
我會感謝從哪裏獲得上述參數的幫助。
你明白了嗎? – Dalton