Skip to content

Instantly share code, notes, and snippets.

@rintoandrews90
Last active July 27, 2019 06:55
Show Gist options
  • Save rintoandrews90/e49b90f30da78725813a863e793942df to your computer and use it in GitHub Desktop.
Save rintoandrews90/e49b90f30da78725813a863e793942df to your computer and use it in GitHub Desktop.
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
NetworkManager.shared.dataTask(serviceURL: "employees", httpMethod: .get, parameters: nil) { (response, error) in
if response != nil {
print(response)
}
if error != nil {
print("Error Occoured")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment