<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Best way to list pages using only JS? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-list-pages-using-only-JS/m-p/680701#M55864</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a bit of a newbie at Hubspot, but we're hosting a separate website with light integration with HubSpot. Right now it only embeds unstyled forms into some of our pages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A colleague has asked that we integrate to show collections of our blog posts and landing pages, and I'm wondering the best way to go about that from a static HTML/JS website. I've been reading about sunsetting the hapikey and understand that that will be going away soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given that our site is not Node/Ruby/PHP/Python, what's the recommended way to query and retrieve a list of landing pages? A list of blog posts? How might we query a single blog post to populate our pages?&amp;nbsp; I understand that OAuth requires some kind of backend processing, but our site is simply static html right now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, this is all very new to me, so sorry if there's an obvious answer. I didn't find a lot of examples out there, and it seems like the sunsetting will invalidate what I found useful in the docs.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 21:56:32 GMT</pubDate>
    <dc:creator>knaps</dc:creator>
    <dc:date>2022-08-15T21:56:32Z</dc:date>
    <item>
      <title>Best way to list pages using only JS?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-list-pages-using-only-JS/m-p/680701#M55864</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a bit of a newbie at Hubspot, but we're hosting a separate website with light integration with HubSpot. Right now it only embeds unstyled forms into some of our pages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A colleague has asked that we integrate to show collections of our blog posts and landing pages, and I'm wondering the best way to go about that from a static HTML/JS website. I've been reading about sunsetting the hapikey and understand that that will be going away soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given that our site is not Node/Ruby/PHP/Python, what's the recommended way to query and retrieve a list of landing pages? A list of blog posts? How might we query a single blog post to populate our pages?&amp;nbsp; I understand that OAuth requires some kind of backend processing, but our site is simply static html right now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, this is all very new to me, so sorry if there's an obvious answer. I didn't find a lot of examples out there, and it seems like the sunsetting will invalidate what I found useful in the docs.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 21:56:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-list-pages-using-only-JS/m-p/680701#M55864</guid>
      <dc:creator>knaps</dc:creator>
      <dc:date>2022-08-15T21:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to list pages using only JS?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-list-pages-using-only-JS/m-p/681082#M55898</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/424216"&gt;@knaps&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Welcome to the community! We'll split this up a bit to help keep us organized.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the API key sunset:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;As long as you are not building an app to offer via the Marketplace to be used by multiple portals (which it sounds like you are&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt;) you can use &lt;A href="https://developers.hubspot.com/docs/api/private-apps" target="_blank" rel="noopener"&gt;Private Apps&lt;/A&gt; with our endpoints.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;To help understand where you can use your private app key, look for the OAuth flag on any of the endpoint listings&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_token.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/72953i1E3B0A0949B9AA36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="use_token.png" alt="use_token.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For thoughts on building this out, and what you could build yourself versus needing help with, let see if the community has any feedback. Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/138856"&gt;@Mark_Ryba&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127598"&gt;@Sjardo&lt;/a&gt;&amp;nbsp;do you have any thoughts on how&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/424216"&gt;@knaps&lt;/a&gt;&amp;nbsp;can approach this project?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 16:55:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-list-pages-using-only-JS/m-p/681082#M55898</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-08-16T16:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to list pages using only JS?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-list-pages-using-only-JS/m-p/681157#M55909</link>
      <description>&lt;P&gt;Thanks for the primer, Jaycee! I read the article you linked. Creating the keys/permissions seems straightforward enough! Now just figuring out how to do it using only JS.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 18:41:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-list-pages-using-only-JS/m-p/681157#M55909</guid>
      <dc:creator>knaps</dc:creator>
      <dc:date>2022-08-16T18:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to list pages using only JS?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-list-pages-using-only-JS/m-p/681365#M55921</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/424216"&gt;@knaps&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let's start with the "easier" one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get an RSS feed from your blog posts - this can be turned into a listing on an external page. There are many options you have.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;My personal recommendation would be the &lt;A href="https://elfsight.com/rss-feed-widget/html/" target="_blank" rel="noopener"&gt;widget from elfsight&lt;/A&gt;. Have used other elfsight widgets in the past and they have worked flawlessly.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;If you like to do it manually you can try &lt;A href="https://rss.bloople.net/" target="_blank" rel="noopener"&gt;bloople.net&lt;/A&gt;. This can be used to transform a single (or many) posts to HTML so you can easily copy/paste them to your page.&lt;/LI&gt;
&lt;LI&gt;You could look for a zapier integration.&lt;/LI&gt;
&lt;LI&gt;Build yourself a webhook solution. (Kinda like elfsight does) But this would be an overengineered solution for single blogposts.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;But the most important: here's &lt;A href="https://knowledge.hubspot.com/cos-blog/where-can-i-find-my-hubspot-blog-rss-feed-url" target="_blank" rel="noopener"&gt;the documentation from HubSpot&lt;/A&gt; how to get the RSS Feed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you like to display only one (specific) post you can download the RSS, remove all unneeded posts, upload the new rss file to your webspace and use this RSS file for your embed solution (elfsight or bloople)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the pages&lt;/P&gt;
&lt;P&gt;Like&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;mentioned the best way would be Private Apps if you'd like to have them automated. But the question would be - what do you want to achieve/do with the list of pages? Just asking because if you just want to "embed" the pages in your HTML page I highly advise against doing so. An much easier approach would be to just link to the HubSpot page from your HTML page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 07:00:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-list-pages-using-only-JS/m-p/681365#M55921</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2022-08-17T07:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to list pages using only JS?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-list-pages-using-only-JS/m-p/681843#M55966</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 23:20:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Best-way-to-list-pages-using-only-JS/m-p/681843#M55966</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-08-17T23:20:56Z</dc:date>
    </item>
  </channel>
</rss>

