Guest User

Untitled

a guest
Oct 16th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. let login: LoginModel = LoginModel(user: "tester", password: "password")
  2. let loginReq = UserAPI.apiUserLoginPostWithRequestBuilder(login: login)
  3.  
  4. loginReq.execute { (userModel, error) in
  5.  
  6. // ...
  7.  
  8. if let resp = userModel
  9. {
  10. print("Body :(resp.header["Set-Cookie"])") // correct cookie is present in response
  11. ...
  12. }
Add Comment
Please, Sign In to add comment