PHP code example of guilty / hubspot-connector
1. Go to this page and download the library: Download guilty/hubspot-connector library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
guilty / hubspot-connector example snippets
twig
{% for blog in craft.hubspot.blogs %}
<a href="{{ blog.root_url }}">
<h4>{{ blog.id }} - {{ blog.name }}</h4>
</a>
{% for post in craft.hubspot.blogPosts(blog.id) %}
<hr>
<article>
<h5>
<a href="{{ post.published_url }}">
{{ post.html_title }}
</a>
</h5>
{{ post.post_summary | striptags }}
</article>
{% endfor %}
{% endfor %}