public function fetch_service_schemas_from_connect_server() { $response_body = $this->api_client->get_service_schemas(); if (is_wp_error($response_body)) { $this->logger->log($response_body, __FUNCTION__); return; } $this->logger->log('Successfully loaded service schemas from server response.', __FUNCTION__); $this->update_last_fetch_timestamp(); $this->maybe_update_heartbeat(); // If we made it this far, it is safe to store the object $this->update_service_schemas($response_body); }