title: Xcode Swift 3 NSURLSession.sharedSession
body: <p>Im trying to update my basic weather app i made with swift 2 to swift 3 this is my code:</p>
  
  <pre><code>func getWeather(city: String) {
  
      let path = "http://api.openweathermap.org/data/2.5/weather?q=London,uk&amp;appid=095711373620570aa92ee530246dc8af"
      let url = NSURL(string: path)
      let session = NSURLSession.sharedSession()
      let task = session.dataTaskWithURL(url!) { (data: NSData?, response: NSURLResponse?, error: NSError?) -&gt; Void in
          print("&gt;&gt;&gt;&gt; \(data)")
      }
  </code></pre>
  
  <p>and NSURLSession.sharedSession(5th line) and NSURLResponse(6th line) print out an error</p>