Home Artists Posts Import Register

Content

iOS up to I believe iOS16 uses a weather.com api key to get weather information. If we create and watch the request we can expose the api key. 

WFWeatheChannelRequestFormatterV2 is the actual class that creates this request, it requires a couple parameters, the forecastRequest and forLocation. 2 works fine here but can't remember what it referred to, I believe it was for the lockscreen. For the location it wants a WFLocation, we can create this and feed it a CLLocation. This location does not have to be specific, it can be any location.

Once we have this info we can then call the 

[weatherChannelClass forecastRequest:2 forLocation: (our WFLocation we created) locale: nil, date:[NSDate date] rules:@[]];

We can then get the queries for this request and extract the api key. 



Comments

No comments found for this post.