got API call working

use success and error instead of callback