Overview

Namespaces

  • EmanueleMinotto
    • Embedly
      • Twig

Classes

  • Client
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Client

Embed.ly API client.

GuzzleHttp\Command\Guzzle\GuzzleClient
Extended by EmanueleMinotto\Embedly\Client
Namespace: EmanueleMinotto\Embedly
Author: Emanuele Minotto minottoemanuele@gmail.com
Located at Client.php
Methods summary
public
# __construct( string|null $apiKey = null, GuzzleHttp\ClientInterface $httpClient = null )

Class constructor.

Class constructor.

Parameters

$apiKey
API key (optional).
$httpClient
Alternative Guzzle HTTP client (optional).
public
# setApiKey( string|null $apiKey = null )

API key setter.

API key setter.

Parameters

$apiKey
public string|null
# getApiKey( )

API key getter.

API key getter.

Returns

string|null
public string
# display( string $method = null, array $params = array() )

The display based routes.

The display based routes.

Parameters

$method
Display method, can be crop, resize, fill or empty.
$params
Request options.

Returns

string

Link

http://embed.ly/docs/api/display/endpoints/1/display
http://embed.ly/docs/api/display/endpoints/1/display/crop
http://embed.ly/docs/api/display/endpoints/1/display/fill
http://embed.ly/docs/api/display/endpoints/1/display/resize
public static string
# encodeUrls( array $values )

Method used to encode URLs imploding them with a comma.

Method used to encode URLs imploding them with a comma.

Parameters

$values

Returns

string
Magic methods summary
public array
# extract( array $params )

Parameters

$params

Returns

array
public array
# oembed( array $params )

Parameters

$params

Returns

array
Constants summary
integer API_VERSION

Embed.ly API version.

Embed.ly API version.

# 1
API documentation generated by ApiGen