Skip to main content

URL Whitelist

This is a string, which matches the regex passed. The rule below restricts playback if the hostname does not contain vdocipher.com

{
"whitelisthref":"vdocipher.com"
}

Get OTP Sample Code​

The sample videoID is 1234567890 and the API Secret Key is a1b2c3d4e5. This sample code only passes the URL whitelisted as parameter.

curl -X POST \
https://dev.vdocipher.com/api/videos/1234567890/otp \
-H 'Accept: application/json' \
-H 'Authorization: Apisecret a1b2c3d4e5' \
-H 'Content-Type: application/json' \
-d '{
"whitelisthref":"vdocipher.com"
}'