You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run notion-api-js in nodejs, but I cannot get right html content
expect html is like that
<div>music-song</div>
...
and so on
but return cotent is
[ { HTML:
'<div><h1 >Get Started</h1><p>👋 Welcome! This is a private page for you to play around with. </p><br /><p>Give these things a try:</p><br /><br /><p style="color:undefined">Have a question?</p></div>',
Attributes:
{ title: 'Get Started',
slug: 'get-started',
cover: null,
teaser:
'Get Started 👋 Welcome! This is a private page for you to play around with. Give these things a try: Have a question?',
icon: null,
id: '9bdfefb9-56af-4a3c-b21e-4301a99f6994' } },
so the return html content is total wrong? and I also use Token, why cannot get right html content?
@dxcqcv Hi there,
sorry for the inactivity! You are using the pageUrl property in a wrong way.
To get the data for a certain page you need to call the getPageById method :)
I run
notion-api-js
in nodejs, but I cannot get right html contentexpect html is like that
but return cotent is
so the return html content is total wrong? and I also use
Token
, why cannot get right html content?my code is
The text was updated successfully, but these errors were encountered: