Update api.php

added get_download_link_html() function