src/MediaServices/MediaServicesRestProxy.php
public function getProtectionKeyId($contentKeyType)
    {
        Validate::isInteger($contentKeyType, 'contentKeyType');

        $method = Resources::HTTP_GET;
        $path = "GetProtectionKeyId?contentKeyType={$contentKeyType}";
        $headers = [];
        $postParams = [];
        $queryParams = [];
        $statusCode = Resources::STATUS_OK;

        $response = $this->sendHttp(
            $method,
            $headers,
            $queryParams,
            $postParams,
            $path,
            $statusCode
        );

        return (string) simplexml_load_string($response->getBody());
    }
public function getProtectionKeyId($contentKeyType)
    {
        Validate::isInteger($contentKeyType, 'contentKeyType');

        $method = Resources::HTTP_GET;
        $path = "GetProtectionKeyId?contentKeyType={$contentKeyType}";
        $headers = [];
        $postParams = [];
        $queryParams = [];
        $statusCode = Resources::STATUS_OK;

        $response = $this->sendHttp(
            $method,
            $headers,
            $queryParams,
            $postParams,
            $path,
            $statusCode
        );

        return (string) simplexml_load_string($response->getBody());
    }
public function getProtectionKeyId ( $ contentKeyType ) { Validate :: isInteger ( $ contentKeyType , 'contentKeyType' ) ; $ method = Resources :: HTTP_GET ; $ path = "GetProtectionKeyId?contentKeyType={$contentKeyType}" ; $ headers = [ ] ; $ postParams = [ ] ; $ queryParams = [ ] ; $ statusCode = Resources :: STATUS_OK ; $ response = $ this -> sendHttp ( $ method , $ headers , $ queryParams , $ postParams , $ path , $ statusCode ) ; return ( string ) simplexml_load_string ( $ response -> getBody ( ) ) ; }
The GetProtectionKeyId function retrieves an X.509 certificate thumbprint that
is used to ensure that you have the correct certificate installed on your
machine when encrypting your user-defined content key.

@param int $contentKeyType ContentKey type

@return string
The GetProtectionKeyId function retrieves an X . 509 certificate thumbprint that is used to ensure that you have the correct certificate installed on your machine when encrypting your user - defined content key .