Skip to content

[PB-7095]: add public shared file download access methods - #464

Draft
terrerox wants to merge 2 commits into
masterfrom
feat/public-folder-download-access
Draft

terrerox wants to merge 2 commits into
masterfrom
feat/public-folder-download-access

Conversation

@terrerox

Copy link
Copy Markdown
Contributor

Description

Adds two public share client methods to fetch per-file download access for a file inside a public shared folder, for the file and thumbnail download endpoints. Requests send the link code and optional access token the same way the public folder listing does.

  • getPublicSharedFileDownloadAccess and getPublicSharedThumbnailDownloadAccess in src/drive/share/index.ts, calling sharings/public/:sharingId/files/:fileUuid/(download-access|thumbnail-download-access)
  • Both send x-share-code, and x-share-access-token when provided, through the private shareAccessHeaders helper
  • New PublicSharedFileDownloadAccess type in src/drive/share/types.ts
  • Tests cover both methods with and without the access token
  • Version bumped to 1.29.3

Related Pull Requests

Add getPublicSharedFileDownloadAccess and getPublicSharedThumbnailDownloadAccess, which send x-share-code and optional x-share-access-token like the public folder listing. Adds the PublicSharedFileDownloadAccess type.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant