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
I can use OAuth authentication with pc = PyCloud("", "LecVZx4nurbtMY1BZUkjfi7ZTyW7azxsy6SyO0j3pJXGRjIMPOdy", endpoint="eapi", oauth2=True). This works on some methods, such as userinfo() and listfolder(folderid=0). However it doesn't with uploadfile(), I get the error {'result': 2000, 'error': 'Log in failed.'}. Inspecting the code it seems that the method uploadfile() is using auth_code, which is initialized empty when using OAuth authentication. Is it possible to use uploadfile() with OAuth authentication?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I can use OAuth authentication with
pc = PyCloud("", "LecVZx4nurbtMY1BZUkjfi7ZTyW7azxsy6SyO0j3pJXGRjIMPOdy", endpoint="eapi", oauth2=True)
. This works on some methods, such asuserinfo()
andlistfolder(folderid=0)
. However it doesn't withuploadfile()
, I get the error{'result': 2000, 'error': 'Log in failed.'}
. Inspecting the code it seems that the methoduploadfile()
is usingauth_code
, which is initialized empty when using OAuth authentication. Is it possible to useuploadfile()
with OAuth authentication?Thanks!
The text was updated successfully, but these errors were encountered: