Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth 2.0 authentication #46

Closed
mrahjoo opened this issue Jul 24, 2021 · 2 comments
Closed

OAuth 2.0 authentication #46

mrahjoo opened this issue Jul 24, 2021 · 2 comments

Comments

@mrahjoo
Copy link

mrahjoo commented Jul 24, 2021

When using OAuth 2.0 authentication, as follow:

from pcloud import PyCloud
pc = api.PyCloud.oauth2_authorize(client_id="stg", client_secret="stg123")
pc.listfolder(folderid=0)

The output is:
Traceback (most recent call last):
File "", line 1, in
NameError: name 'api' is not defined

by doing "from pcloud import api"
The output is:
AttributeError: type object 'PyCloud' has no attribute 'oauth2_authorize'

Any help would be appreciated.

@mrahjoo mrahjoo changed the title api OAuth 2.0 authentication Jul 24, 2021
@tomgross
Copy link
Owner

tomgross commented Aug 7, 2021

Hi @mrahjoo which version of pycloud you are using?
You need at least 0.10a.

@tomgross
Copy link
Owner

Closed because of inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants