PHP Classes
elePHPant
Icontem

PHP Wunderlist API: Manage user lists using the Wunderlist API

Recommend this page to a friend!
  Info   View files View files (79)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-04-09 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 110 All time: 8,416 This week: 1,081Up
Version License PHP version Categories
wunderlist 1.0.0MIT/X Consortium ...5.5PHP 5, Web services
Description Author

This package can manage user lists using the Wunderlist API.

It can sent HTTP requests to the Wunderlist API to perform several types of operations using OAuth to obtain the permission for the user to manage his lists.

Currently the package can manage lists, tasks, reminders, avatar, etc..

Picture of Italo Lelis de Vietro
  Performance   Level  
Name: Italo Lelis de Vietro <contact>
Classes: 7 packages by
Country: Brazil Brazil

Details

Wunderlist PHP SDK

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Downloads

SensioLabsInsight

Unofficial Wunderlist SDK for PHP. This library works perfectly with Wunderlist v3.

Install

composer require italolelis/wunderlist

Usage

Basic example

The SDK is pretty simple to use, here is an example of how we can access all lists:

<?php

use Wunderlist\Entity\WList;
use Wunderlist\ClientBuilder;

// Instanciate wunderlist API manager
$builder = new ClientBuilder();
$wunderlist = $builder->build('yourClientId', 'yourClientSecret', 'http://domain.com/oauth/callback');

//Here we get all lists for the authenticated user
$lists = $wunderlist->getService(WList::class)->all();

//For each list on the lists
$lists->map(function($list) {
    echo $list->getTitle();
});
    

What about all taks for a list?

<?php

use Wunderlist\Entity\Task;
use Wunderlist\Entity\WList;

//Here we get all lists for the authenticated user
$lists = $wunderlist->getService(WList::class)->all();

//For each list on the lists
$lists->map(function($list) {
    $tasks = wunderlist->getService(Task::class)->forList($list);
    $tasks->map(function($task){
        echo $task->getTitle();
    });
});

Ok, now lets create a task for a list

<?php

use Wunderlist\Entity\WList;
use Wunderlist\Entity\Task;

//Here we get all lists for the authenticated user
$lists = $wunderlist->getService(WList::class)->all();

//We get the first list
$list = $lists->first();

$task = new Task();
$task->setListID($list->getId())
    ->setTitle('Test Hello');

$wunderlist->save($task);

This is just some simple things you can do with the SDK. Whant more? please just read our documentation

Integrations

- Silex service provider - Silex Wunderlist Skeleton - Symfony WunderlistBundle

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Documentation

More information can be found in the online documentation at http://wunderlist.readthedocs.org/.

  Files folder image Files  
File Role Description
Files folder imagedocs (15 files, 1 directory)
Files folder imagesrc (2 files, 5 directories)
Files folder imagetests (3 files)
Accessible without login Plain text file .scrutinizer.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Auxiliary data

  Files folder image Files  /  docs  
File Role Description
Files folder image_templates (1 file)
  Accessible without login Plain text file authentication.rst Data Auxiliary data
  Accessible without login Plain text file conf.py Data Auxiliary data
  Accessible without login Plain text file index.rst Data Auxiliary data
  Accessible without login Plain text file integrations.rst Data Auxiliary data
  Accessible without login Plain text file list.rst Data Auxiliary data
  Accessible without login Plain text file Makefile Data Auxiliary data
  Accessible without login Plain text file overview.rst Data Auxiliary data
  Accessible without login Plain text file quickstart.rst Data Auxiliary data
  Accessible without login Plain text file reactive-extension.rst Data Auxiliary data
  Accessible without login Plain text file reminder.rst Data Auxiliary data
  Accessible without login Plain text file requirements.txt Doc. Documentation
  Accessible without login Plain text file revisions.rst Data Auxiliary data
  Accessible without login Plain text file serviceManager.rst Data Auxiliary data
  Accessible without login Plain text file services.rst Data Auxiliary data
  Accessible without login Plain text file task.rst Data Auxiliary data

  Files folder image Files  /  docs  /  _templates  
File Role Description
  Accessible without login HTML file nav_links.html Data Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageEntity (21 files)
Files folder imageException (2 files)
Files folder imageHttp (4 files)
Files folder imageOAuth (3 files, 2 directories)
Files folder imageService (18 files)
  Plain text file ClientBuilder.php Class Class source
  Plain text file Wunderlist.php Class Class source

  Files folder image Files  /  src  /  Entity  
File Role Description
  Plain text file AbstractPosition.php Class Class source
  Plain text file AbstractTask.php Class Class source
  Plain text file Avatar.php Class Class source
  Plain text file ICallFeed.php Class Class source
  Plain text file Identifiable.php Class Class source
  Plain text file IdentifiableInterface.php Class Class source
  Plain text file ListPosition.php Class Class source
  Plain text file Membership.php Class Class source
  Plain text file Note.php Class Class source
  Plain text file Reminder.php Class Class source
  Plain text file Revisionable.php Class Class source
  Plain text file Subtask.php Class Class source
  Plain text file SubtaskPosition.php Class Class source
  Plain text file Task.php Class Class source
  Plain text file TaskComment.php Class Class source
  Plain text file TaskPosition.php Class Class source
  Plain text file Timestampable.php Class Class source
  Plain text file Upload.php Class Class source
  Plain text file User.php Class Class source
  Plain text file Webhook.php Class Class source
  Plain text file WList.php Class Class source

  Files folder image Files  /  src  /  Exception  
File Role Description
  Plain text file NotAllowedException.php Class Class source
  Plain text file WunderlistException.php Class Class source

  Files folder image Files  /  src  /  Http  
File Role Description
  Plain text file AsyncGuzzleAdapter.php Class Class source
  Plain text file GuzzleAdapter.php Class Class source
  Plain text file HttpClientFactory.php Class Class source
  Plain text file HttpClientInterface.php Class Class source

  Files folder image Files  /  src  /  OAuth  
File Role Description
Files folder imageProvider (1 file)
Files folder imageService (1 file)
  Plain text file AuthenticationInterface.php Class Class source
  Plain text file LeagueAuthentication.php Class Class source
  Plain text file OAuthLibAuthentication.php Class Class source

  Files folder image Files  /  src  /  OAuth  /  Provider  
File Role Description
  Plain text file Wunderlist.php Class Class source

  Files folder image Files  /  src  /  OAuth  /  Service  
File Role Description
  Plain text file Wunderlist.php Class Class source

  Files folder image Files  /  src  /  Service  
File Role Description
  Plain text file AbstractGetOnlyService.php Class Class source
  Plain text file AbstractService.php Class Class source
  Plain text file AvatarService.php Class Class source
  Plain text file ICallFeedService.php Class Class source
  Plain text file ListPositionService.php Class Class source
  Plain text file ListService.php Class Class source
  Plain text file MembershipService.php Class Class source
  Plain text file NoteService.php Class Class source
  Plain text file ReminderService.php Class Class source
  Plain text file ServiceInterface.php Class Class source
  Plain text file SubtaskPositionService.php Class Class source
  Plain text file SubtaskService.php Class Class source
  Plain text file TaskCommentsService.php Class Class source
  Plain text file TaskCountService.php Class Class source
  Plain text file TaskPositionService.php Class Class source
  Plain text file TaskService.php Class Class source
  Plain text file UserService.php Class Class source
  Plain text file WebhookService.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file AuthenticationTest.php Test Unit test script
  Accessible without login Plain text file ListServiceTest.php Test Unit test script
  Accessible without login Plain text file WunderlistTestCase.php Test Unit test script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:110
This week:0
All time:8,416
This week:1,081Up