6/2/2023 0 Comments Wunderlist tagsThis 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(). Use the same URL in your code: $w->authUrl($state, '').Go to the apps page and set the auth callback url to or whatever you got.It'll tell you where your website is publicly available, something like Create the tunnel: ngrok http localhost:8000. In PHP via terminal php -S localhost:8000 If you're working locally, I recommend using ngrok: Note: the URL you provide must be the same you set as your app auth callback url. Store the $state to retrieve it later // Redirect the user to: $w-> authUrl( $state, '') This package may be installed through Composer: If your app is not yet hosted on the Internet, set both the URL fields to You're only going to need a 'real' auth callback url when you need to set up authorization (more about this later). Wunderlist will ask you about the name of the app, the description, an icon to represent the app, the URL where it is located and the callback URL for authorization. To do that, go here, log in and click on the blue button that says 'CREATE APP'. Why does it say Forbidden during authentication?įirst of all, you need to register your app.Why do some methods take more time than others?.What should I expect from the Wunderlist API?.Move your lists and tasks to Microsoft To Do before May 6th. Wunderlist will be officially shut down on May 6th. Use the latest Wunderlist API version in your apps.
0 Comments
Leave a Reply. |