Connect to api methods