메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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. |
리턴 | 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. |