nav/wunderlist

dev-master 2016-08-19 14:33 UTC

This package is not auto-updated.

Last update: 2024-09-18 20:02:03 UTC


README

这是一个于2016年5月15日,下午1:51创建的Symfony项目。

备注

  • 使用Wunderlist API创建任务、列表和提醒
  • 处理资源和使用任务、列表和提醒的有用方法的客户端
  • 使用GuzzleHttp客户端通过OAuth 2.0使用Wunderlist
  • 目标是自动化外部事件的任务创建
  • 使用Guzzle作为HTTP客户端

待办事项

  • 创建客户端以轻松访问任务/列表等
  • 根据应用程序中的错误/问题自动执行任务
  • 在控制中心为每个应用程序创建新的任务/列表

示例


        // Get the Wunderlist Task Service
        $taskService = $this->get('nav_wunderlist.tasks');

        // You should probably want to give this your own implementation
        $client = $taskService->getWunderlistAccountForTesting();

        // Retrieve lists for user
        $lists = $taskService->getLists();

        // Retrieve tasks for a list
        $tasks = $taskService->getTasksForListId("WUNDERLIST-LIST-ID");

        // Retrieve files in a list
        $files = $taskService->getFilesForListId("WUNDERLIST-LIST-ID");

        // Create a new Task within a list
        $newTask = $taskService->createTask("WUNDERLIST-LIST-ID", "Nieuwe taak via API");

        // Create a new List
        $newList = $taskService->createList("Mijn nieuwe lijst");