Skip to content

Instantly share code, notes, and snippets.

@boina-n
Last active October 3, 2017 10:03
Show Gist options
  • Save boina-n/78a511a58b0206005116f2575d909083 to your computer and use it in GitHub Desktop.
Save boina-n/78a511a58b0206005116f2575d909083 to your computer and use it in GitHub Desktop.
Pivotal file_download_api
apikey=YourApiKeyhere
filename=pcfdev-v0.24.0+PCF1.9.0-linux.zip
url=https://network.pivotal.io/api/v2/products/pcfdev/releases/4027/product_files/12667/download
wget -O $filename --header="Authorization: Token $apikey" $url
# If you are behind a proxy:
curl -x http://myproxyaddress:port --proxy-user username:password' -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token $apikey" -X GET $url -o $filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment