Skip to content

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.

2 participants