서버 연동 인증 정보 만들기
Environment ID, Site Key, Access Key 및 Content ID을 찾으십시오. 신뢰할 수있는 백엔드에서 인증 정보를 유지하십시오.
빠른 start#에 의해 사용되는 4개의 값을 복사합니다.
Console → Integrations에서 재생 API 클라이언트를 만들고 license-tokens:create만 부여합니다. Console → Package content에서 생성된 게시된 파일에서 Content ID를 가져옵니다.
PHP 코드 - 첫 번째 설정
return [
'platformApi' => 'https://api6.drm-x.com',
'siteId' => 'your-development-environment-uuid',
'siteKey' => 'drmx_your_environment_scoped_client_id',
'accessKey' => 'paste-your-one-time-access-key',
'applicationId' => 'customer-php-website',
'content' => [
'id' => 'your-published-content-id',
'title' => 'Your protected title',
'type' => 'vod',
],
'licensePolicyTemplate' => 'multi-tier-standard',
'licensePolicy' => null,
'licenseDeliveryMode' => 'direct-token',
];
어떤 환경 변수가 다운로드 된 빠른 시작에 필요합니다. 예를 들어 환경 또는 비밀 관리자 주입에 대한 주석 생산 대안이 포함되어 있습니다.
이 값을 발송하지 마십시오.Do not place the Site Key or Access Key in HTML, JavaScript, an APK, an IPA, application resources, mobile CI variables, URLs, logs, analytics, or downloadable configuration.
각 응용 프로그램 또는 백엔드 서비스에 대한 다른 API 클라이언트를 사용하여 각 통합을 중단하지 않고 하나의 자격 증명을 회전하거나 수정할 수 있습니다.
DRM-X 6.0