Getting local redirect URL

To start linking process you have to setup redirect url.
You can set your own or use current one.
SDK provides you a getRedirectUrl() helper for your convenience:

$redirectUrl=$client->getRedirectUrl();

We recommend you to have it stored during the linking session
because you will need to use it when you will be getting access token.

Setting local redirect URL

Set a custom redirect url use:

$client->setRedirectUrl('http://your.domain.tld/path/to/script/');

Getting LinkedIn redirect URL

In order of performing OAUTH 2.0 flow, you should get LinkedIn login URL.
During this procedure you have to define scope of requested permissions.
Use Scope enum class to get scope names.
To get redirect url to LinkedIn, use the following approach: