title: How to use NSURLSessionDataTask in Swift
body: <p>Can someone help me? I can't find a good example for the completion syntax.</p>
  
  <pre><code>var url : NSURL = NSURL.URLWithString("https://itunes.apple.com/search?term=\(searchTerm)&amp;media=software")
  var request: NSURLRequest = NSURLRequest(URL:url)
  let config = NSURLSessionConfiguration.defaultSessionConfiguration()
  let session = NSURLSession.sessionWithConfiguration(config)
  
  NSURLSessionDataTask(session.dataTaskWithRequest(request, completionHandler: ((NSData!, NSURLResponse!, NSError!) -&gt; Void)?)
  </code></pre>