Skip to content
This repository was archived by the owner on Feb 6, 2019. It is now read-only.

Get credentials manually

Brice Vercoustre edited this page Oct 8, 2013 · 1 revision

If you don't want the authentication process to be triggered automatically on manager's actions like $video->save() you can use this trick directly on a Provider:

use Libcast\AssetDistribution\Provider\YoutubeProvider;

$provider = new YoutubeProvider('/path/to/config.ini');
$provider->authenticate();

If you have persisted a Provider or already may have authenticate in your script, and need to check if authentication is required again, you can use the $provider->isAuthorized() method.

Clone this wiki locally