PHP Class seregazhuk\PinterestBot\Bot

Mostrar archivo Open project: seregazhuk/php-pinterest-bot Class Usage Examples

Protected Properties

Property Type Description
$providersContainer seregazhuk\PinterestBot\Api\ProvidersContainer

Public Methods

Method 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 method

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

__construct() public method

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

__get() public method

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

getClientInfo() public method

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
return array | null

Property Details

$providersContainer protected_oe property

protected ProvidersContainer,seregazhuk\PinterestBot\Api $providersContainer
return seregazhuk\PinterestBot\Api\ProvidersContainer