Global daily spot data

Comments

test

test

import http.client

import http.client

conn = http.client.HTTPSConnection("api-metoffice.apiconnect.ibmcloud.com")

headers = {
    'x-ibm-client-id': "REPLACE_THIS_KEY",
    'x-ibm-client-secret': "REPLACE_THIS_KEY",
    'accept': "application/json"
    }

conn.request("GET", "/metoffice/production/v0/forecasts/point/daily?excludeParameterMetadata=REPLACE_THIS_VALUE&includeLocationName=REPLACE_THIS_VALUE&latitude=REPLACE_THIS_VALUE&longitude=REPLACE_THIS_VALUE", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

PowerShell Basic Call

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("X-IBM-Client-Id"'REPLACE_THIS_KEY')
$headers.Add("X-IBM-Client-Secret"'REPLACE_THIS_KEY')
$headers.Add("accept"'application/json')

$response = Invoke-RestMethod 'https://api-metoffice.apiconnect.ibmcloud.com/metoffice/production/v0/fo...' -Headers $headers