-
Notifications
You must be signed in to change notification settings - Fork 197
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
base: master
Are you sure you want to change the base?
Conversation
Is this compliant with Cloudflare workers' TOS? or notion's for that matter. |
Hm, that's a really good question. 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? |
… based on View; previously it just got the first item in the collection, which wouldn’t work with linked database views
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