How does it look like?Īlmost each method maps to a Wunderlist API endpoint: You can always use getStatusCode() regardless of what the method returned.
Some methods (such as deleteTask()) will return a status code. For example, if you createTask(), it will return the task that was just created. Most of the time, the methods will return an array containing the results of what you just did. What should I expect from the Wunderlist API? Again, to know what fields should be present in the attributes for a Wunderlist API endpoint, have a look at the official Wunderlist API documentation. If you provide unrecognized attribute fields, they will be ignored. However, it'll check if the attributes contain the fields required by the endpoint. Since this package doesn't perform validation or sanitization, you can provide any attribute to (almost) every method.
To know what attributes you need to provide to each method, the data it returns or what status code is set, head over to the official Wunderlist API documentation. This package is a wrapper for each endpoint in the Wunderlist API. $accessToken = $w-> getAuthToken( $ _GET) Īnd that's the user's access token. Now retrieve the $state from earlier and compare it to $_GET. Once the user grants access to your app, he's going to be redirected to the callback URL carrying a code and the state.
Ngrok gives you a different URL everytime you create the tunnel, so you'll need to update the auth callback url for your app and the one you provide to authUrl().
With that in mind, paid Pro account status might be a tough sell, considering the few benefits it offers at this point. At the moment, Wunderlist Pro accounts don't come with the option to attach files, but according to the folks at Wunderlist, that function is on its way. Pro subscribers also get access to eight additional backgrounds, which is not terribly exciting.
There's even a Smart List that aggregates all of the tasks that have been assigned to you. The biggest benefit of the premium status is the ability to assign tasks to other users with whom you have shared a list. With a paid Wunderlist Pro subscription, you can add another level of functionality to Wunderlist, upgrading it from a simple to-do app to more of a task management app. And if they do, I'd love for them to enable syncing of entire Lists, not just individual Tasks. For some, this lack may be a deal-breaker, so I'm keeping my fingers crossed that Wunderlist's developers will add this capability soon. Another feature I found missing from Wunderlist was the option to sync with Google Tasks and Google Calendar.