![]() Check the API Docs out to know what each method expects. Get all lists $wunderlist-> getLists() How do I provide data?įor most methods you'll need to provide an array of attributes, however, for certain ones you'll need to supply some value(s). Get all tasks for a given list $wunderlist-> getTasks() 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().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |