PHP Class Embedly\Embedly

Author: Embed.ly, Inc.
Author: Sven Eisenschmidt ([email protected])
Mostrar archivo Open project: embedly/embedly-php Class Usage Examples

Protected Properties

Property Type Description
$api_version array
$hostname string
$key string
$services array | object
$user_agent string

Public Methods

Method Description
__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

Protected Methods

Method Description
curlExec ( resource &$ch ) : string
parse_host ( string $host ) : array Flexibly parse host strings.
q ( $params ) : string
setCurlOptions ( resource &$ch, array $headers = [] ) : void

Method Details

__construct() public method

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

api_version() public method

public api_version ( ) : string
return string

apicall() public method

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

curlExec() protected method

protected curlExec ( resource &$ch ) : string
$ch resource
return string

extract() public method

public extract ( string | array $params ) : object
$params string | array
return object

objectify() public method

public objectify ( array $params ) : object
$params array
return object

oembed() public method

public oembed ( $params ) : string | array
return string | array

paramify() public static method

public static paramify ( string $input ) : array
$input string
return array

parse_host() protected method

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

preview() public method

public preview ( string | array $params ) : object
$params string | array
return object

q() protected method

protected q ( $params ) : string
return string

reg_delim_stripper() public static method

public static reg_delim_stripper ( string $r ) : string
$r string
return string

reg_imploder() public static method

public static reg_imploder ( stdClass $o ) : string
$o stdClass
return string

services() public method

public services ( ) : array
return array

services_regex() public method

public services_regex ( ) : string
return string

setCurlOptions() protected method

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

url_encode() public static method

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

Property Details

$api_version protected_oe property

protected array $api_version
return array

$hostname protected_oe property

protected string $hostname
return string

$key protected_oe property

protected string $key
return string

$services protected_oe property

protected array|object $services
return array | object

$user_agent protected_oe property

protected string $user_agent
return string