Authentication

The Wunderlist API uses OAuth2 to allow external applications to request authorization to a user’s Wunderlist account without directly handling their password. Developers must register their application before getting started. Registration assigns a unique client ID and client secret for your application’s use. After you have registered your application, you can let Wunderlist users authorize access to their account information from your application by getting an access token. After a user has authorized your application and you have an access token, you can use it in Wunderlist API requests by setting the X-Client-ID and X-Access-Token HTTP request headers.

Our SDK handles this procedure very well. For this we have a some simple steps to make. Just remeber that this procedure is already done by our SDK, this is just an stand alone service if you want to use it.

Built in Providers

PHPoAuthLib

PHPoAuthLib provides oAuth support in PHP 5.3+ and is very easy to integrate with any project which requires an oAuth client.

oauth2-client

This package makes it stupidly simple to integrate your application with OAuth 2.0 identity providers.

Custom Providers

You can implement any provider by implementing the AuthenticationInterface

use Wunderlist\OAuth\AuthenticationInterface;
use Symfony\Component\HttpFoundation\Request;

class MyProviderAuthentication implements AuthenticationInterface
{
    /**
     * @return Request
     */
    public function getRequest()
    {

    }

    /**
     * @param Request $request
     * @return $this
     */
    public function setRequest($request)
    {

    }

    /**
     * @return string
     */
    public function getConsumerId()
    {

    }

    /**
     * @return string
     */
    public function getAccessToken()
    {

    }

    /**
     * @return string
     */
    public function hasAccessToken()
    {

    }

    public function authorize()
    {

    }
}