WARNING

This channel is deprecated. Please see the GitHub Repo (opens new window) for more information

# Todoist notifications channel for Laravel 5.3

Latest Version on Packagist (opens new window) Software License (opens new window) Build Status (opens new window) StyleCI (opens new window) SensioLabsInsight (opens new window) Quality Score (opens new window) Code Coverage (opens new window) Total Downloads (opens new window)

~This package makes it easy to create Todoist 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/todoist

# Setting up the Todoist service

In order to add tickets to Todoist users, you need to obtain their access token.

Create a new Todoist App (opens new window) to get started.

# Usage

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

use NotificationChannels\Todoist\TodoistChannel;
use NotificationChannels\Todoist\TodoistMessage;
use Illuminate\Notifications\Notification;

class ProjectCreated extends Notification
{
    public function via($notifiable)
    {
        return [TodoistChannel::class];
    }

    public function toTodoist($notifiable)
    {
        return TodoistMessage::create('This is the ticket name.')
                ->priority(4)
                ->due('tomorrow');
    }
}

In order to let your Notification know which Todoist user and Todoist list you are targeting, add the routeNotificationForTodoist method to your Notifiable model.

This method needs to return the access token of the authorized Todoist user.

public function routeNotificationForTodoist()
{
    return 'NotifiableAccessToken';
}

# Available methods

  • content(''): Accepts a string value for the Todoist ticket content.
  • projectId(''): Accepts an integer value for the Todoist project id, default is the "Inbox" project.
  • priority(''): Accepts an integer value for the ticket priority. It should be a number between 1 and 4, 4 for very urgent and 1 for natural.
  • indent(''): Accepts an integer value for the ticket indent level. It should be a a number between 1 and 4, where 1 is top-level.
  • itemOrder(''): Accepts an integer value for the ticket item order.
  • collapsed(): Marks the Todoist ticket as collapsed.
  • due(''): Accepts a string or DateTime object for the Todoist 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.