PHP 클래스 seregazhuk\PinterestBot\Helpers\UrlBuilder

파일 보기 프로젝트 열기: seregazhuk/php-pinterest-bot 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

buildApiUrl() 공개 정적인 메소드

Appends resource url to base pinterest url.
public static buildApiUrl ( string $resourceUrl ) : string
$resourceUrl string
리턴 string

buildRequestString() 공개 정적인 메소드

public static buildRequestString ( array $request ) : mixed
$request array
리턴 mixed

fixEncoding() 공개 정적인 메소드

Fix URL-encoding for some characters.
public static fixEncoding ( string $str ) : string
$str string
리턴 string

getFollowingUrlByType() 공개 정적인 메소드

public static getFollowingUrlByType ( string $type ) : string | null
$type string
리턴 string | null

getSearchUrl() 공개 정적인 메소드

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