PHP Класс Webiny\Component\TwitterOAuth\Bridge\TwitterOAuth

Наследование: use trait Webiny\Component\StdLib\StdLibTrait
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

getInstance() публичный статический Метод

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.
Результат Webiny\Component\TwitterOAuth\Bridge\TwitterOAuthInterface

setLibrary() публичный статический Метод

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.