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

YaDiskClient just doesn't work #14

Open
savelmtr opened this issue May 6, 2021 · 0 comments
Open

YaDiskClient just doesn't work #14

savelmtr opened this issue May 6, 2021 · 0 comments

Comments

@savelmtr
Copy link

savelmtr commented May 6, 2021

Hello everybody and thanx for such a useful lib. It could resolve a very important issue for me, but I can't get why it doesn't work.
So, my way is like that:

from YaDiskClient.YaDiskClient import YaDisk

disk = YaDisk('[email protected]', 'just_pass_for_mail')
disk.publish_doc('/a_document.pdf')

So after that I get this output:

YaDiskException                           Traceback (most recent call last)
<ipython-input-14-657e99db9776> in <module>
      7 
      8 disk = YaDisk('[email protected]', 'just_pass_for_mail')
----> 9 disk.publish_doc('/a_document.pdf')

/usr/local/lib/python3.8/site-packages/YaDiskClient/YaDiskClient.py in publish_doc(self, path)
    218     def publish_doc(self, path):
    219         warn('This method was deprecated in favor method "publish"', DeprecationWarning, stacklevel=2)
--> 220         return self.publish(path)
    221 
    222     def hide_doc(self, path):

/usr/local/lib/python3.8/site-packages/YaDiskClient/YaDiskClient.py in publish(self, path)
    194             return parseContent(resp.content)
    195         else:
--> 196             raise YaDiskException(resp.status_code, resp.content)
    197 
    198     def unpublish(self, path):

YaDiskException: 401. b''

Or, maybe, this project is abandoned and now we should search another way to deal with YaDisk?

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

1 participant