PHP Class seregazhuk\PinterestBot\Api\Providers\Provider

Inheritance: use trait seregazhuk\PinterestBot\Helpers\Providers\ProviderHelper
Afficher le fichier Open project: seregazhuk/php-pinterest-bot Class Usage Examples

Protected Properties

Свойство Type Description
$loginRequiredFor array List of methods that require logged status.
$request seregazhuk\PinterestBot\Api\Request Instance of the API Request.
$response seregazhuk\PinterestBot\Api\Response

Méthodes publiques

Méthode Description
__construct ( Request $request, Response $response )
checkMethodRequiresLogin ( string $method ) : boolean
getEntityIdName ( ) : string
getPaginatedData ( array $data, string $url, array $bookmarks = [] ) : Response Executes pagination GET request.
isLoggedIn ( ) : boolean

Méthodes protégées

Méthode Description
execGetRequest ( array $requestOptions = [], string $resourceUrl = '' ) : array | boolean Executes a GET request to Pinterest API.
execGetRequestWithPagination ( array $requestOptions, string $resourceUrl, array $bookmarks = [] ) : Response Executes a GET request to Pinterest API with pagination.
execPostRequest ( array $requestOptions, string $resourceUrl, boolean $returnResponse = false ) : Response | boolean Executes a POST request to Pinterest API.
execute ( $url, string $postString = "" )
processResult ( string $res ) : Response

Method Details

__construct() public méthode

public __construct ( Request $request, Response $response )
$request seregazhuk\PinterestBot\Api\Request
$response seregazhuk\PinterestBot\Api\Response

checkMethodRequiresLogin() public méthode

public checkMethodRequiresLogin ( string $method ) : boolean
$method string
Résultat boolean

execGetRequest() protected méthode

Executes a GET request to Pinterest API.
protected execGetRequest ( array $requestOptions = [], string $resourceUrl = '' ) : array | boolean
$requestOptions array
$resourceUrl string
Résultat array | boolean

execGetRequestWithPagination() protected méthode

Executes a GET request to Pinterest API with pagination.
protected execGetRequestWithPagination ( array $requestOptions, string $resourceUrl, array $bookmarks = [] ) : Response
$requestOptions array
$resourceUrl string
$bookmarks array
Résultat seregazhuk\PinterestBot\Api\Response

execPostRequest() protected méthode

Executes a POST request to Pinterest API.
protected execPostRequest ( array $requestOptions, string $resourceUrl, boolean $returnResponse = false ) : Response | boolean
$requestOptions array
$resourceUrl string
$returnResponse boolean
Résultat seregazhuk\PinterestBot\Api\Response | boolean

execute() protected méthode

protected execute ( $url, string $postString = "" )
$url
$postString string

getEntityIdName() public méthode

public getEntityIdName ( ) : string
Résultat string

getPaginatedData() public méthode

Executes pagination GET request.
public getPaginatedData ( array $data, string $url, array $bookmarks = [] ) : Response
$data array
$url string
$bookmarks array
Résultat seregazhuk\PinterestBot\Api\Response

isLoggedIn() public méthode

public isLoggedIn ( ) : boolean
Résultat boolean

processResult() protected méthode

protected processResult ( string $res ) : Response
$res string
Résultat seregazhuk\PinterestBot\Api\Response

Property Details

$loginRequiredFor protected_oe property

List of methods that require logged status.
protected array $loginRequiredFor
Résultat array

$request protected_oe property

Instance of the API Request.
protected Request,seregazhuk\PinterestBot\Api $request
Résultat seregazhuk\PinterestBot\Api\Request

$response protected_oe property

protected Response,seregazhuk\PinterestBot\Api $response
Résultat seregazhuk\PinterestBot\Api\Response