PHP Class seregazhuk\PinterestBot\Bot

Afficher le fichier Open project: seregazhuk/php-pinterest-bot Class Usage Examples

Protected Properties

Свойство Type Description
$providersContainer seregazhuk\PinterestBot\Api\ProvidersContainer

Méthodes publiques

Méthode Description
__call ( string $method, array $parameters ) : mixed All method calls are proxied to the providers container.
__construct ( ProvidersContainer $providersContainer )
__get ( string $provider ) : Provider Magic method to access different providers from the providers container.
getClientInfo ( boolean $reload = false ) : array | null Returns client context from Pinterest response. By default info returns from the last Pinterest response. If there was no response before or the argument $reload is true, we make a dummy request to the main page to update client context.

Method Details

__call() public méthode

All method calls are proxied to the providers container.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
Résultat mixed

__construct() public méthode

public __construct ( ProvidersContainer $providersContainer )
$providersContainer seregazhuk\PinterestBot\Api\ProvidersContainer

__get() public méthode

Magic method to access different providers from the providers container.
public __get ( string $provider ) : Provider
$provider string
Résultat seregazhuk\PinterestBot\Api\Providers\Provider

getClientInfo() public méthode

Returns client context from Pinterest response. By default info returns from the last Pinterest response. If there was no response before or the argument $reload is true, we make a dummy request to the main page to update client context.
public getClientInfo ( boolean $reload = false ) : array | null
$reload boolean
Résultat array | null

Property Details

$providersContainer protected_oe property

protected ProvidersContainer,seregazhuk\PinterestBot\Api $providersContainer
Résultat seregazhuk\PinterestBot\Api\ProvidersContainer