You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 2, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 2, 2024. It is now read-only.
Authentification code sample from the README.ME is wrong.
importonedrivesdkredirect_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)
# Ask for the codeprint('Paste this URL into your browser, approve the app\'s access.')
print('Copy everything in the address bar after "code=", and paste it below.')
print(auth_url)
code=raw_input('Paste code here: ')
client.auth_provider.authenticate(code, redirect_uri, client_secret)
Activity
baywet commentedon Oct 2, 2024
Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #209 for more information