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

Get signed file URL endpoint proposal #49

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

janzheng
Copy link

Hi there, I thought it would be pretty useful to have an endpoint to get signed file URLs for things like PDFs uploaded to Notion.

Here's an example request: https://notion-cloudflare-worker.yawnxyz.workers.dev/v1/asset?url=https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7b07bcc5-c445-4646-92e7-80778396bf0f/fmicb-11-00397_(1).pdf&blockId=6cc938f5-76fc-4069-8315-d776778afc71

@yassinebridi
Copy link

Is this compliant with Cloudflare workers' TOS? or notion's for that matter.

@janzheng
Copy link
Author

Hm, that's a really good question.
tl;dr, I think all of this is all a gray, undefined area, and I have no idea

It's probably not compliant with Notion's TOS in the same way that probably none of Splitbee's unofficial Notion API is compliant haha

As for Cloudflare workers, I'm not sure? The code makes a call to Notion's API and gets a signed URL to get a file from Notion's storage — if it's against TOS then maybe getting images from Notion's API would already be against TOS?

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.

None yet

2 participants