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  

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

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