WARNING
This channel is deprecated. Please see the GitHub Repo (opens new window) for more information
# Wunderlist notifications channel for Laravel 5.3
(opens new window) (opens new window) (opens new window) (opens new window) (opens new window) (opens new window) (opens new window) (opens new window)
~This package makes it easy to create Wunderlist tasks (opens new window) with Laravel 5.3.~
# Channel Deprecated
Please see this issue (opens new window) for more infomation.
This channel was deprecated in Oct 2019 due to lack of a maintainer.
# Contents
# Installation
You can install the package via composer:
composer require laravel-notification-channels/wunderlist
# Setting up the Wunderlist service
Create a new Wunderlist App (opens new window).
Add your Wunderlist Client-ID to your config/services.php
:
// config/services.php
...
'wunderlist' => [
'key' => env('WUNDERLIST_API_KEY'),
],
...
# Usage
Now you can use the channel in your via()
method inside the notification:
use NotificationChannels\Wunderlist\WunderlistChannel;
use NotificationChannels\Wunderlist\WunderlistMessage;
use Illuminate\Notifications\Notification;
class ProjectCreated extends Notification
{
public function via($notifiable)
{
return [WunderlistChannel::class];
}
public function toWunderlist($notifiable)
{
return WunderlistMessage::create('Another channel bites the dust')
->starred()
->due('tomorrow');
}
}
In order to let your notification know which Wunderlist user and Wunderlist list you are targeting, add the routeNotificationForWunderlist
method to your Notifiable model.
This method needs to return an array containing the access token of the authorized Wunderlist user and the list ID of the Wunderlist list to add the ticket to.
public function routeNotificationForWunderlist()
{
return [
'token' => 'NotifiableAccessToken',
'list_id' => 12345,
];
}
# Available methods
title('')
: Accepts a string value for the Wunderlist ticket title.assigneeId('')
: Accepts a string value for the Wunderlist assignee id.recurrenceCount('')
: Accepts an integer value for the ticket recurrence count.recurrenceType('')
: Accepts one of these values for the recurrence type:WunderlistMessage::RECURRENCE_TYPE_DAY
,WunderlistMessage::RECURRENCE_TYPE_WEEK
,WunderlistMessage::RECURRENCE_TYPE_MONTH
,WunderlistMessage::RECURRENCE_TYPE_YEAR
starred()
: Marks the Wunderlist ticket as starred.completed()
: Marks the Wunderlist ticket as completed.due('')
: Accepts a string or DateTime object for the Wunderlist ticket due date.
# Changelog
Please see CHANGELOG (opens new window) for more information what has changed recently.
# Testing
$ composer test
# Security
If you discover any security related issues, please email m.pociot@gmail.com instead of using the issue tracker.
# Contributing
Please see CONTRIBUTING (opens new window) for details.
# Credits
# License
The MIT License (MIT). Please see License File (opens new window) for more information.
← Todoist