Skip to content

Instantly share code, notes, and snippets.

Salman Fakhri Salamander1012

View GitHub Profile
View networking.swift
let endpoint = "https://api.openweathermap.org/data/2.5/weather?zip=08901,us&appid=<INSERT API KEY HERE>"
let url = URL(string: endpoint)!
URLSession.shared.dataTask(with: url) { (data, response, error) in
if let error = error {
print(error)
return
}
You can’t perform that action at this time.