Trying to get weather data for a specific location and specific timezone. Generated Service identifier and Private Key, from Apple developer site. Then Generated public key Generated jwt token from jwt.io by keying in the payload, header, public, and private key. Header { alg : ES256, // predefined kid : “keyid” , // key id created for WeatherKit id : “developer_team_account_id.com.company_name.MyWeatherKit, typ : JWT } Payload { iat : 1710117942, exp : 1710204342, iss : developer_team_account_id, sub : com.company_name.MyWeatherKit } I Then call this function: func getWeatherData(requestId: String, latitudeStr: String, longitudeStr: String, completion: @escaping (Bool) -> () ){ var country = US var language = en var tz = CST let jwtToken = token here.... let urlString:String = https://weatherkit.apple.com/api/v1/availability/ + language + / + latitudeStr + / + longitudeStr + ? + country= + country + & + timezone= + tz print(Apple weather urlString: (urlString)) let weatherURL = URL(string: ur
0
0
693