Recommend this page to a friend! |
Download |
Info | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 125 | All time: 9,440 This week: 524 |
Version | License | PHP version | Categories | |||
wunderlist 1.0.0 | MIT/X Consortium ... | 5.5 | PHP 5, Web services |
Description | Author | ||||||||
This package can manage user lists using the Wunderlist API. |
|
Unofficial Wunderlist SDK for PHP. This library works perfectly with Wunderlist v3.
composer require italolelis/wunderlist
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
- Silex service provider - Silex Wunderlist Skeleton - Symfony WunderlistBundle
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.
More information can be found in the online documentation at http://wunderlist.readthedocs.org/.
Files (79) |
File | Role | Description | ||
---|---|---|---|---|
docs (15 files, 1 directory) | ||||
src (2 files, 5 directories) | ||||
tests (3 files) | ||||
.scrutinizer.yml | Data | Auxiliary data | ||
.travis.yml | Data | Auxiliary data | ||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
CONTRIBUTING.md | Data | Auxiliary data | ||
LICENSE | Lic. | Auxiliary data | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Auxiliary data |
Files (79) | / | docs |
File | Role | Description | ||
---|---|---|---|---|
_templates (1 file) | ||||
authentication.rst | Data | Auxiliary data | ||
conf.py | Data | Auxiliary data | ||
index.rst | Data | Auxiliary data | ||
integrations.rst | Data | Auxiliary data | ||
list.rst | Data | Auxiliary data | ||
Makefile | Data | Auxiliary data | ||
overview.rst | Data | Auxiliary data | ||
quickstart.rst | Data | Auxiliary data | ||
reactive-extension.rst | Data | Auxiliary data | ||
reminder.rst | Data | Auxiliary data | ||
requirements.txt | Doc. | Documentation | ||
revisions.rst | Data | Auxiliary data | ||
serviceManager.rst | Data | Auxiliary data | ||
services.rst | Data | Auxiliary data | ||
task.rst | Data | Auxiliary data |
Files (79) | / | src |
File | Role | Description | ||
---|---|---|---|---|
Entity (21 files) | ||||
Exception (2 files) | ||||
Http (4 files) | ||||
OAuth (3 files, 2 directories) | ||||
Service (18 files) | ||||
ClientBuilder.php | Class | Class source | ||
Wunderlist.php | Class | Class source |
Files (79) | / | src | / | Entity |
File | Role | Description |
---|---|---|
AbstractPosition.php | Class | Class source |
AbstractTask.php | Class | Class source |
Avatar.php | Class | Class source |
ICallFeed.php | Class | Class source |
Identifiable.php | Class | Class source |
IdentifiableInterface.php | Class | Class source |
ListPosition.php | Class | Class source |
Membership.php | Class | Class source |
Note.php | Class | Class source |
Reminder.php | Class | Class source |
Revisionable.php | Class | Class source |
Subtask.php | Class | Class source |
SubtaskPosition.php | Class | Class source |
Task.php | Class | Class source |
TaskComment.php | Class | Class source |
TaskPosition.php | Class | Class source |
Timestampable.php | Class | Class source |
Upload.php | Class | Class source |
User.php | Class | Class source |
Webhook.php | Class | Class source |
WList.php | Class | Class source |
Files (79) | / | src | / | Exception |
File | Role | Description |
---|---|---|
NotAllowedException.php | Class | Class source |
WunderlistException.php | Class | Class source |
Files (79) | / | src | / | Http |
File | Role | Description |
---|---|---|
AsyncGuzzleAdapter.php | Class | Class source |
GuzzleAdapter.php | Class | Class source |
HttpClientFactory.php | Class | Class source |
HttpClientInterface.php | Class | Class source |
Files (79) | / | src | / | OAuth |
File | Role | Description | ||
---|---|---|---|---|
Provider (1 file) | ||||
Service (1 file) | ||||
AuthenticationInterface.php | Class | Class source | ||
LeagueAuthentication.php | Class | Class source | ||
OAuthLibAuthentication.php | Class | Class source |
Files (79) | / | src | / | Service |
File | Role | Description |
---|---|---|
AbstractGetOnlyService.php | Class | Class source |
AbstractService.php | Class | Class source |
AvatarService.php | Class | Class source |
ICallFeedService.php | Class | Class source |
ListPositionService.php | Class | Class source |
ListService.php | Class | Class source |
MembershipService.php | Class | Class source |
NoteService.php | Class | Class source |
ReminderService.php | Class | Class source |
ServiceInterface.php | Class | Class source |
SubtaskPositionService.php | Class | Class source |
SubtaskService.php | Class | Class source |
TaskCommentsService.php | Class | Class source |
TaskCountService.php | Class | Class source |
TaskPositionService.php | Class | Class source |
TaskService.php | Class | Class source |
UserService.php | Class | Class source |
WebhookService.php | Class | Class source |
Files (79) | / | tests |
File | Role | Description |
---|---|---|
AuthenticationTest.php | Test | Unit test script |
ListServiceTest.php | Test | Unit test script |
WunderlistTestCase.php | Test | Unit test script |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
Official documentation |