Skip to content

Instantly share code, notes, and snippets.

@jbayer
Created June 28, 2015 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbayer/24e68996706975757698 to your computer and use it in GitHub Desktop.
Save jbayer/24e68996706975757698 to your computer and use it in GitHub Desktop.
pivotal network file download example
#!/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