Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func logIn(user: String, pass: String) {
- do {
- let opt = try HTTP.GET(apiURL + "/users")
- opt.start { response in
- if let err = response.error {
- print("error: (err.localizedDescription)")
- return //also notify app of failure as needed
- }
- //HERE I NEED TO TAKE THE DATA AND STORE IT IN THE VARIABLES SO I CAN == WITH THE ARGUMENTS OF THE FUNCTION.
- }
- } catch let error {
- print("got an error creating the request: (error)")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement