Please see this issue for more infomation.
This channel was deprecated in Oct 2019 due to lack of a maintainer.
This package makes it easy to create Evernote notes with Laravel 5.3.
You can install the package via composer:
composer require laravel-notification-channels/evernote
In order to add tickets to Evernote users, you need to obtain their access token.
Create a sandbox Evernote API key to get started.
To simplify development, you can also generate your personal development access token.
Now you can use the channel in your via()
method inside the notification:
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.
This method needs to return the access token of the authorized Evernote user.
public function routeNotificationForEvernote()
{
return 'NotifiableAccessToken';
}
title('')
: Accepts a string for the Evernote ticket title.content(EvernoteContent)
: Accepts an EvernoteContent object.sandbox()
: Enables the Evernote sandbox mode (defaultfalse
).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.
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).
Please see CHANGELOG for more information what has changed recently.
$ composer test
If you discover any security related issues, please email m.pociot@gmail.com instead of using the issue tracker.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.