Is it possible to capture the response headers for iOS? In android, it would look something like the below:
MASUser.login("admin", "password".toCharArray(), new MASCallback<MASUser>() {
@Override
public void onSuccess(MASUser result) {
}
@Override
public void onError(Throwable e) {
((AuthenticationException)((MASException)e).getRootCause()).getResponse().getHeaders();
}
});
But I'm unable to find an equivalent for iOS and the mas.ca.com docs for iOS doesn't highlight this either. Any help would be much appreciated!