How to download arXiv article PDF files and TEX files in “Other formats” (if they exist)?

I find that ServiceConnect can access much arXiv information. But is it possible to download the PDF/TEX files I want, e.g., given article "ID"s?

ids = {"1707.04849v1", "0904.3664v1", "1707.09562v3", "1507.02188v1"};

Files are downloaded to your home directory. To download to a different location, modify the second argument to URLDownload