Attempting to get a actual weather for previous day (e.g. earlier today)
I'm getting a status of 400, error: "Bad Request"
Not sure what I'm doing wrong as I'm using forecastHourly in a GET URL as follows:
'https://weatherkit.apple.com/api/v1/weather/en/37.873377/-122.046918?dataSets=forecastHourly&hourlyStart=2023-02-20T17:00:00+00:00'
Maybe I need to encode the hourly start parameter? [tried that to no avail]
Don't really want to have to pass country code as these items are all over the world. I'm hoping that the lat/lon will be sufficient.
I've also attempted to truncate to the hour even vs using the actual datetime stamp [as shown above].
Any suggestions?
Getting a hourly forecast works fine as I'm not sending any parameters so it's not the JWT logic or anything like that...
Thanks,