from typing import List
import requests
import json


def get_asset_urls(host: str, token: str, photoGuids: List[str]):
    """
    Get precice asset URLs based on a list of photo GUIDs
    """
    url = "https://{}/{}/sharedstreams/webasseturls".format(host, token)
    response = requests.post(url, json.dumps(
        {'photoGuids': photoGuids}), allow_redirects=True)
    if response.status_code == 200:
        return json.loads(response.content)
    else:
        raise ValueError("Received unexpected response from server.")