This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import hashlib | |
import hmac | |
from collections import OrderedDict | |
def get_viewer_url_signature(account_id, auth_token, identifier, valid_until_timestamp): | |
# type: (str, str, str, int) -> str | |
# First, we generate our policy, which is an object giving the account_id and |