mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-27 09:08:58 +01:00
Update list-coffee-prices.ps1
This commit is contained in:
parent
86f447985e
commit
5b2a69b336
@ -33,7 +33,10 @@ function WriteHorizontalBar { param([float]$Value, [float]$Max)
|
||||
}
|
||||
|
||||
try {
|
||||
Write-Progress "⏳ Loading data from www.alphavantage.co..."
|
||||
$prices = (Invoke-WebRequest -URI "https://www.alphavantage.co/query?function=COFFEE&interval=monthly&apikey=demo" -userAgent "curl" -useBasicParsing).Content | ConvertFrom-Json
|
||||
Write-Progress -completed " "
|
||||
|
||||
""
|
||||
"$($prices.name) (by alphavantage.co, in $($prices.unit))"
|
||||
"---------------------------------------------------------------"
|
||||
|
Loading…
Reference in New Issue
Block a user