Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

NameError: name 'raw_input' is not defined #148

Description

@shellwhale

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)

raw_input() was renamed to input() in Python 3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions