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. |
Method | Description | |
---|---|---|
getLibrary ( ) : string | Get the name of bridge library which will be used as the 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 |
public static setLibrary ( string $pathToClass ) | ||
$pathToClass | string | Path to the new bridge class. The class must implement \Webiny\Component\TwitterOAuth\Bridge\TwitterOAuthInterface. |