Evernote notifications channel for Laravel 5.3
, (*1)
Channel Deprecated
Please see this issue for more infomation.
This channel was deprecated in Oct 2019 due to lack of a maintainer., (*2)
This package makes it easy to create Evernote notes with Laravel 5.3., (*3)
Contents
Installation
You can install the package via composer:, (*4)
``` bash
composer require laravel-notification-channels/evernote, (*5)
### Setting up the Evernote service
In order to add tickets to Evernote users, you need to obtain their access token.
Create a sandbox [Evernote API key](https://dev.evernote.com/doc/) to get started.
To simplify development, you can also generate your [personal development access token](https://sandbox.evernote.com/api/DeveloperToken.action).
## Usage
Now you can use the channel in your `via()` method inside the notification:
``` php
use NotificationChannels\Evernote\EvernoteChannel;
use NotificationChannels\Evernote\EvernoteContent;
use NotificationChannels\Evernote\EvernoteMessage;
use Illuminate\Notifications\Notification;
class ProjectCreated extends Notification
{
public function via($notifiable)
{
return [EvernoteChannel::class];
}
public function toEvernote($notifiable)
{
return EvernoteMessage::create('Evernote message title')
->sandbox()
->content(EvernoteContent::create('Evernote content is here'))
->tags(['Laravel','Notifications'])
->reminder('tomorrow');
}
}
In order to let your Notification know which Evernote user you are targeting, add the routeNotificationForEvernote method to your Notifiable model., (*6)
This method needs to return the access token of the authorized Evernote user., (*7)
public function routeNotificationForEvernote()
{
return 'NotifiableAccessToken';
}
Available Message methods
-
title(''): Accepts a string for the Evernote ticket title.
-
content(EvernoteContent): Accepts an EvernoteContent object.
-
sandbox(): Enables the Evernote sandbox mode (default false).
-
done(): Marks the Evernote ticket as done.
-
tags(''): Accepts an array with tags to add to the Evernote ticket.
-
reminder(''): Accepts a string or DateTime object for the Evernote ticket reminder.
Available Content methods
-
content(''): Accepts a string value for the Evernote ticket content.
-
html(): Sets the content type to HTML.
-
plain(): Sets the content type to Plaintext (default).
Changelog
Please see CHANGELOG for more information what has changed recently., (*8)
Testing
bash
$ composer test, (*9)
Security
If you discover any security related issues, please email m.pociot@gmail.com instead of using the issue tracker., (*10)
Contributing
Please see CONTRIBUTING for details., (*11)
Credits
License
The MIT License (MIT). Please see License File for more information., (*12)