#!/bin/bash
#
# Copyright (c) 2020 Bubble, Inc.  All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
if [[ -z "${VULTR_API_KEY}" ]] ; then
  echo 1>&2 "VULTR_API_KEY not defined in environment"
  exit 1
fi

path=${1:?no path provided}
shift

curl ${@} -s -H "API-Key: ${VULTR_API_KEY}" https://api.vultr.com/v1/${path}
