Skip to content

Commit

Permalink
initial commit, moved from bitbucket"
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeSverre committed Oct 9, 2018
0 parents commit c56664c
Show file tree
Hide file tree
Showing 15 changed files with 3,338 additions and 0 deletions.
1 change: 1 addition & 0 deletions .craftplugin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pluginName":"HubSpot Connector","pluginDescription":"Expose Hubspot api features in Twig and pull in content from your HubSpot Portal.","pluginVersion":"1.0.0","pluginAuthorName":"Guilty AS","pluginVendorName":"guilty","pluginAuthorUrl":"https://guilty.no","pluginAuthorGithub":"","codeComments":"","pluginComponents":["services","settings","variables","widgets"],"consolecommandName":"","controllerName":"","cpsectionName":"","elementName":"","fieldName":"","modelName":"","purchasableName":"","recordName":"","serviceName":"Hubspot","taskName":"","utilityName":"","widgetName":"Hubspot","apiVersion":"api_version_3_0"}
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# CRAFT ENVIRONMENT
.env.php
.env.sh
.env

# COMPOSER
/vendor

# BUILD FILES
/bower_components/*
/node_modules/*
/build/*
/yarn-error.log

# MISC FILES
.cache
.DS_Store
.idea
.project
.settings
*.esproj
*.sublime-workspace
*.sublime-project
*.tmproj
*.tmproject
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
config.codekit3
prepros-6.config
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# HubSpot Connector Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.0.0 - 2018-09-01
### Added
- Initial release
9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2018 Guilty AS

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# HubSpot Connector plugin for Craft CMS 3.x

Expose Hubspot API features in Twig and pull in content from your HubSpot Portal.

## Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later.

## Installation

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

cd /path/to/project

2. Then tell Composer to load the plugin:

composer require guilty/hubspot-connector

3. In the Control Panel, go to Settings → Plugins and click the “Install” button for HubSpot Connector.


## Configuring HubSpot Connector

1. Go the the admin panel
2. Go to the settings page
3. Click on "HubSpot Connector" under the "Plugins" section
4. Enter your [Hubspot API key](https://knowledge.hubspot.com/articles/kcs_article/integrations/how-do-i-get-my-hubspot-api-key) and click Save.
5. Done

## Using HubSpot Connector

```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 %}
```

Brought to you by [Guilty AS](https://guilty.no)

*The HubSpot logo and Trademark is the property of Hubspot Inc*
42 changes: 42 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "guilty/hubspot-connector",
"description": "Expose Hubspot API features in Twig and pull in content from your HubSpot Portal.",
"type": "craft-plugin",
"version": "1.0.0",
"keywords": [
"craft",
"cms",
"craftcms",
"craft-plugin",
"hubspot connector"
],
"license": "MIT",
"authors": [
{
"name": "Guilty AS",
"homepage": "https://guilty.no"
}
],
"require": {
"craftcms/cms": "^3.0.0-RC1",
"ryanwinchester/hubspot-php": "~1.0"
},
"autoload": {
"psr-4": {
"Guilty\\HubspotConnector\\": "src/"
}
},
"extra": {
"name": "HubSpot Connector",
"handle": "hubspot-connector",
"hasCpSettings": true,
"hasCpSection": false,
"developer": "Guilty AS",
"developerEmail": "[email protected]",
"developerUrl": "https://guilty.no",
"components": {
"hubspot": "Guilty\\HubspotConnector\\services\\Hubspot"
},
"class": "Guilty\\HubspotConnector\\HubspotConnector"
}
}
Loading

0 comments on commit c56664c

Please sign in to comment.