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

Question: more link support? #5

Closed
Bobronium opened this issue Apr 26, 2022 · 3 comments
Closed

Question: more link support? #5

Bobronium opened this issue Apr 26, 2022 · 3 comments

Comments

@Bobronium
Copy link
Contributor

Hello, @stevedsun! I've just stumbled across this project, great stuff!

I was wondering, are these link types on the roadmap, or not supported because some kind of limitation?

  • embed
  • callout
  • quote
  • column
  • column_list
  • synced_block
  • link_to_page
  • table_row

I saw that lib was updated from using client to using SDK, and I can imagine these types of links weren't possible to track using token_v2.

Is it still impossible to track with data from an SDK or now it can be implemented? If it's possible, I would be happy to collaborate!

@stevedsun
Copy link
Owner

Hi @Bobronium , due to Notion API limitation, following types could not be parsed:

  • embed
  • synced_block
  • link_to_page (Notion return "unsupport" type when I debug API response.)

But other types are supported and in my dev plan, welcome to contribute code.

The old project code using token_v2 to parse webpage, could not keep up with Notion official updates, therefore I updated it with Notion-API instead.

Now this project has some issues, like slow speed and parsing too many useless blocks. I am going to fix them as soon as possible.

@Bobronium
Copy link
Contributor Author

Bobronium commented Apr 26, 2022

Thanks for response!

link_to_page (Notion return "unsupport" type when I debug API response.)

Could you give an example request, so I could continue from where you stopped?

It seems that Notion API support Link to Page block type. Maybe there's a bug in the API?

@stevedsun
Copy link
Owner

Sorry I debug it by my own Notion account, so I cannot share it with you.
You can reproduce it by:

  1. create a page (say A), add a link_to_page block in A
  2. call notion api to retrieve A's children: GET https://api.notion.com/v1/blocks/{Block_A_ID}/children
  3. You may find an "unsupport" type in children list

You can also refer to Notion API Reference

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

2 participants