src/MediaServices/MediaServicesRestProxy.php
public function getContentKey($contentKey)
    {
        $contentKeyId = Utilities::getEntityId(
            $contentKey,
            'WindowsAzure\MediaServices\Models\ContentKey'
        );

        return ContentKey::createFromOptions(
            $this->_getEntity("ContentKeys('{$contentKeyId}')")
        );
    }
public function getContentKey($contentKey)
    {
        $contentKeyId = Utilities::getEntityId(
            $contentKey,
            'WindowsAzure\MediaServices\Models\ContentKey'
        );

        return ContentKey::createFromOptions(
            $this->_getEntity("ContentKeys('{$contentKeyId}')")
        );
    }
public function getContentKey ( $ contentKey ) { $ contentKeyId = Utilities :: getEntityId ( $ contentKey , 'WindowsAzure\MediaServices\Models\ContentKey' ) ; return ContentKey :: createFromOptions ( $ this -> _getEntity ( "ContentKeys('{$contentKeyId}')" ) ) ; }
Get ContentKey.

@param ContentKey|string $contentKey An ContentKey data or
ContentKey Id

@return ContentKey
Get ContentKey .