badlog.blogg.se

Wunderlist website
Wunderlist website








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.

wunderlist website

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

    wunderlist website

    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. $state = md5( time()) // Store the $state to retrieve it later // Redirect the user to: $w ->authUrl( $state, ' ') If you're using a framework, everything in your vendor directory is most likely autoloaded for you. This package may be installed through Composer: composer require johnrivs/wunderlist 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.

    wunderlist website

    Why do some methods take more time than others?.What should I expect from the Wunderlist API?.

    wunderlist website

    tar.gz Use the latest Wunderlist API version in your apps. Wunderlist by johnRivs Wunderlist SDK for the latest Wunderlist API version.










    Wunderlist website