Created
February 23, 2018 19:37
-
-
Save IsaAliev/2c7836a8f6c994984a3bb2dde04de341 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ViewController: UIViewController { | |
let ghReposAPI: ReposGettable = ReposAPI() | |
let ghUserAPI: GitHubUsersAPI = BasicGHUsersAPI() | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
ghReposAPI.getRepos { (repos) in | |
print(repos) | |
} | |
ghUserAPI.getLocationFor("IsaAliev") { (city) in | |
print(city) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment