PHP Class seregazhuk\PinterestBot\Helpers\UrlBuilder

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

Méthodes publiques

Méthode Description
buildApiUrl ( string $resourceUrl ) : string Appends resource url to base pinterest url.
buildRequestString ( array $request ) : mixed
fixEncoding ( string $str ) : string Fix URL-encoding for some characters.
getFollowingUrlByType ( string $type ) : string | null
getSearchUrl ( array $bookmarks = [] ) : string Return Pinterest API url for search requests.

Method Details

buildApiUrl() public static méthode

Appends resource url to base pinterest url.
public static buildApiUrl ( string $resourceUrl ) : string
$resourceUrl string
Résultat string

buildRequestString() public static méthode

public static buildRequestString ( array $request ) : mixed
$request array
Résultat mixed

fixEncoding() public static méthode

Fix URL-encoding for some characters.
public static fixEncoding ( string $str ) : string
$str string
Résultat string

getFollowingUrlByType() public static méthode

public static getFollowingUrlByType ( string $type ) : string | null
$type string
Résultat string | null

getSearchUrl() public static méthode

Return Pinterest API url for search requests.
public static getSearchUrl ( array $bookmarks = [] ) : string
$bookmarks array
Résultat string