Advertisement
Guest User

Untitled

a guest
Jan 27th, 2017
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. func logIn(user: String, pass: String) {
  2. do {
  3. let opt = try HTTP.GET(apiURL + "/users")
  4. opt.start { response in
  5. if let err = response.error {
  6. print("error: (err.localizedDescription)")
  7. return //also notify app of failure as needed
  8. }
  9.  
  10. //HERE I NEED TO TAKE THE DATA AND STORE IT IN THE VARIABLES SO I CAN == WITH THE ARGUMENTS OF THE FUNCTION.
  11.  
  12. }
  13. } catch let error {
  14. print("got an error creating the request: (error)")
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement