Skip to content

Commit

Permalink
Added Hubspot client options to config file
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjcooper committed Jul 4, 2019
1 parent 1c1063a commit 03f941d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/HubSpotServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ public function register()
{
//Bind the HubSpot wrapper class
$this->app->bind('Rossjcooper\LaravelHubSpot\HubSpot', function ($app) {
return HubSpot::create(env('HUBSPOT_API_KEY', config('hubspot.api_key')));
return HubSpot::create(
env('HUBSPOT_API_KEY', config('hubspot.api_key')),
null,
config('hubspot.client_options')
);
});
}

Expand Down
6 changes: 5 additions & 1 deletion src/config/hubspot.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

return [

'api_key' => env('HUBSPOT_API_KEY')
'api_key' => env('HUBSPOT_API_KEY'),

'client_options' => [
'http_errors' => true,
],

];

0 comments on commit 03f941d

Please sign in to comment.