fix comparing resultCode with RESULT_OK
start using snapi contact api