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

Can't share uploaded file with expiration shared link #73

Closed
Tezei opened this issue Jan 24, 2023 · 4 comments
Closed

Can't share uploaded file with expiration shared link #73

Tezei opened this issue Jan 24, 2023 · 4 comments

Comments

@Tezei
Copy link

Tezei commented Jan 24, 2023

Hiya!
Congrats about awesome package that you made. Can I ask you how to share uploaded file and get temporary shared link with expiration?

Thanks in advanced!

@ikwyl6
Copy link

ikwyl6 commented Jun 20, 2023

For future: https://docs.pcloud.com/methods/public_links/
This hasn't been implemented yet in pycloud api: https://github.com/tomgross/pycloud/blob/master/src/pcloud/api.py#L442

tomgross added a commit that referenced this issue Jun 23, 2023
@tomgross
Copy link
Owner

Unfortunately generating a public link is restricted.

This method can't be used from web applications. Referrer is restricted to pcloud.com. (see
https://docs.pcloud.com/methods/public_links/getfilepublink.html)

tomgross added a commit that referenced this issue Jun 23, 2023
@tomgross
Copy link
Owner

New version 1.2 of pcloud released on pypi: https://pypi.org/project/pcloud/

@ikwyl6
Copy link

ikwyl6 commented Jun 27, 2023

Strange that public link for file is restricted but folder is not (or doesn't say it atleast): https://docs.pcloud.com/methods/public_links/getfolderpublink.html

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

3 participants