Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.76 KB

File metadata and controls

35 lines (21 loc) · 1.76 KB

HubSpot-ruby sample OAuth 2.0 app

This is a sample app for the hubspot-ruby SDK

Please see the documentation on How do I create an app in HubSpot?

HubSpot Public API links used in this application

Note on Application Scopes

HubSpot provides a way to restrict application users access to the system to certain scopes. In order to do that it is a good practice to make a set of scopes required by your applicatuion. Please refer to Initiate an Integration with OAuth 2.0 for documentation on the scope parameter passed to https://app.hubspot.com/oauth/authorize to make a set of scopes required. Scopes explains how to make optional scopes and talks about scopes available in HubSpot system

Setup App

Please, make sure that you have ruby 2.6.3 installed and run bunle in your app folder.

bundle install

Configure

  1. Copy .env.template to .env
  2. Paste your HUBSPOT_CLIENT_ID and HUBSPOT_CLIENT_SECRET

Running

Just run your rails app

rails s

You should now be able to navigate to http://localhost:3000 and use the application.