PHP 클래스 Embedly\Embedly

저자: Embed.ly, Inc.
저자: Sven Eisenschmidt ([email protected])
파일 보기 프로젝트 열기: embedly/embedly-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$api_version array
$hostname string
$key string
$services array | object
$user_agent string

공개 메소드들

메소드 설명
__construct ( array $args = [] )
api_version ( ) : string
apicall ( string $version, array $action, array $params ) : object
extract ( string | array $params ) : object
objectify ( array $params ) : object
oembed ( $params ) : string | array
paramify ( string $input ) : array
preview ( string | array $params ) : object
reg_delim_stripper ( string $r ) : string
reg_imploder ( stdClass $o ) : string
services ( ) : array
services_regex ( ) : string
url_encode ( string $key, string | array $value ) : string

보호된 메소드들

메소드 설명
curlExec ( resource &$ch ) : string
parse_host ( string $host ) : array Flexibly parse host strings.
q ( $params ) : string
setCurlOptions ( resource &$ch, array $headers = [] ) : void

메소드 상세

__construct() 공개 메소드

public __construct ( array $args = [] )
$args array

api_version() 공개 메소드

public api_version ( ) : string
리턴 string

apicall() 공개 메소드

public apicall ( string $version, array $action, array $params ) : object
$version string
$action array
$params array
리턴 object

curlExec() 보호된 메소드

protected curlExec ( resource &$ch ) : string
$ch resource
리턴 string

extract() 공개 메소드

public extract ( string | array $params ) : object
$params string | array
리턴 object

objectify() 공개 메소드

public objectify ( array $params ) : object
$params array
리턴 object

oembed() 공개 메소드

public oembed ( $params ) : string | array
리턴 string | array

paramify() 공개 정적인 메소드

public static paramify ( string $input ) : array
$input string
리턴 array

parse_host() 보호된 메소드

Returns an array of { protocol: , host: , port: , url: }
protected parse_host ( string $host ) : array
$host string
리턴 array

preview() 공개 메소드

public preview ( string | array $params ) : object
$params string | array
리턴 object

q() 보호된 메소드

protected q ( $params ) : string
리턴 string

reg_delim_stripper() 공개 정적인 메소드

public static reg_delim_stripper ( string $r ) : string
$r string
리턴 string

reg_imploder() 공개 정적인 메소드

public static reg_imploder ( stdClass $o ) : string
$o stdClass
리턴 string

services() 공개 메소드

public services ( ) : array
리턴 array

services_regex() 공개 메소드

public services_regex ( ) : string
리턴 string

setCurlOptions() 보호된 메소드

protected setCurlOptions ( resource &$ch, array $headers = [] ) : void
$ch resource
$headers array
리턴 void

url_encode() 공개 정적인 메소드

public static url_encode ( string $key, string | array $value ) : string
$key string
$value string | array
리턴 string

프로퍼티 상세

$api_version 보호되어 있는 프로퍼티

protected array $api_version
리턴 array

$hostname 보호되어 있는 프로퍼티

protected string $hostname
리턴 string

$key 보호되어 있는 프로퍼티

protected string $key
리턴 string

$services 보호되어 있는 프로퍼티

protected array|object $services
리턴 array | object

$user_agent 보호되어 있는 프로퍼티

protected string $user_agent
리턴 string