PHP Класс Aws\CloudFront\CloudFrontClient

Наследование: extends Aws\Common\Client\AbstractClient
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getSignedCookie ( array $options ) : array Create a signed Amazon CloudFront cookie.
getSignedUrl ( array $options ) : string Create a signed Amazon CloudFront URL.

Описание методов

getSignedCookie() публичный Метод

This method accepts an array of configuration options: - url: (string) URL of the resource being signed (can include query string and wildcards). For example: http://d111111abcdef8.cloudfront.net/images/horizon.jpg?size=large&license=yes - policy: (string) JSON policy. Use this option when creating a signed URL for a custom policy. - expires: (int) UTC Unix timestamp used when signing with a canned policy. Not required when passing a custom 'policy' option. - key_pair_id: (string) The ID of the key pair used to sign CloudFront URLs for private distributions. - private_key: (string) The filepath ot the private key used to sign CloudFront URLs for private distributions.
public getSignedCookie ( array $options ) : array
$options array Array of configuration options used when signing
Результат array Key => value pairs of signed cookies to set

getSignedUrl() публичный Метод

This method accepts an array of configuration options: - url: (string) URL of the resource being signed (can include query string and wildcards). For example: rtmp://s5c39gqb8ow64r.cloudfront.net/videos/mp3_name.mp3 http://d111111abcdef8.cloudfront.net/images/horizon.jpg?size=large&license=yes - policy: (string) JSON policy. Use this option when creating a signed URL for a custom policy. - expires: (int) UTC Unix timestamp used when signing with a canned policy. Not required when passing a custom 'policy' option. - key_pair_id: (string) The ID of the key pair used to sign CloudFront URLs for private distributions. - private_key: (string) The filepath ot the private key used to sign CloudFront URLs for private distributions.
public getSignedUrl ( array $options ) : string
$options array Array of configuration options used when signing
Результат string Signed URL with authentication parameters