PHP Class Webiny\Component\TwitterOAuth\Bridge\TwitterOAuth

Inheritance: use trait Webiny\Component\StdLib\StdLibTrait
Exibir arquivo Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
getInstance ( string $clientId, string $clientSecret, string $redirectUri ) : Webiny\Component\TwitterOAuth\Bridge\TwitterOAuthInterface Create an instance of an TwitterOAuth driver.
setLibrary ( string $pathToClass ) Change the default library used for the driver.

Private Methods

Method Description
getLibrary ( ) : string Get the name of bridge library which will be used as the driver.

Method Details

getInstance() public static method

Create an instance of an TwitterOAuth driver.
public static getInstance ( string $clientId, string $clientSecret, string $redirectUri ) : Webiny\Component\TwitterOAuth\Bridge\TwitterOAuthInterface
$clientId string Client id.
$clientSecret string Client secret.
$redirectUri string Target url where to redirect after authentication.
return Webiny\Component\TwitterOAuth\Bridge\TwitterOAuthInterface

setLibrary() public static method

Change the default library used for the driver.
public static setLibrary ( string $pathToClass )
$pathToClass string Path to the new bridge class. The class must implement \Webiny\Component\TwitterOAuth\Bridge\TwitterOAuthInterface.