success connecting to the api