Skip to content

Instantly share code, notes, and snippets.

@rintoandrews90
Created July 26, 2019 16:47
Show Gist options
  • Save rintoandrews90/b2fb634d4c25e564b9bf603b83a806a9 to your computer and use it in GitHub Desktop.
Save rintoandrews90/b2fb634d4c25e564b9bf603b83a806a9 to your computer and use it in GitHub Desktop.
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
NetworkManager.shared.dataTask(serviceURL: "create", httpMethod: .post, parameters: ["name":"rinto","salary":"456","age":"30"]) { (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