An open API service indexing awesome lists of open source software.

https://github.com/gosuperscript/hubspot-notification-channel


https://github.com/gosuperscript/hubspot-notification-channel

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Laravel Hubspot Notification Channel

This package makes it easy to send Hubspot (Single Send Email) notifications with Laravel.

## Installation

You can install the package via composer:

``` bash
composer require digitalrisks/hubspot-notification-channel
```

Add the service provider (only required on Laravel 5.4 or lower):

```php
// config/app.php
'providers' => [
...
DigitalRisks\Notifications\ServiceProvider::class,
],
```

### Setting up your Hubspot account

Add your Hubspot key to your `config/services.php`:

```php
// config/services.php
...
'hubspot' => [
'app_access_token' => env('HUBSPOT_APP_ACCESS_TOKEN', null),
'template_id' => env('TEMPLATE_NAME_ID', null)
],
...
```

## Usage

Now you can use the channel in your `via()` method inside the notification:

``` php
templateId(config('services.hubspot.template_id'))
->contactProperties([])
->customProperties([]);
}
}
```

## Setting up the to field.
``` php
email;
}
}
```

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Testing

``` bash
$ composer test
```

## Security

If you discover any security related issues, please email kani.robinson@digitalrisks.co.uk instead of using the issue tracker.

## Credits

- [Kani Robinson](https://github.com/kanirobinson)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.