LinkedIn's API is pretty locked down to partners, which you must apply for. There's also no documented API to retrieve connections.
The approach we've taken here is that you upload data that you're comfortable uploading. You don't have to upload your entire LinkedIn ZIP archive -- you can just upload the Connections.csv file (which you can review before you upload).