Created
June 28, 2015 20:32
-
-
Save jbayer/24e68996706975757698 to your computer and use it in GitHub Desktop.
pivotal network file download example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PIVNET_TOKEN=PASTE_THIS_FROM_PIVNET_USER_PROFILE | |
export LOCAL_FILE_NAME=stack_announcement.pdf | |
export DOWNLOAD_URL=https://network.pivotal.io/api/v2/products/pivotal-cf/releases/267/product_files/1804/download | |
wget -O "$LOCAL_FILE_NAME" --post-data="" --header="Authorization: Token $PIVNET_TOKEN" $DOWNLOAD_URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment