I am fairly new to Swift, and am trying to make an HTTP request. I tried many of the ideas in this Stack Overflow question, but all caused errors when run in a playground; I believe this is because they are all in Swift 1.0-2.0.
How can I make an HTTP request in Swift 3?
Update I tried the first solution presented in this answer and, after completing Xcode's suggested "Fix-its" I encountered four errors: