News application with New York Times open API
Get your NYT API Key and put the key below
private func getUrlString() -> String {
if let apiKey = ApiKey.getApiKey() {
return NewsRoutes.shared.getNews(apiKey: apiKey)
} else {
/// put your own api key
return NewsRoutes.shared.getNews(apiKey: "")
}
}