les the error response for a given verb. * * @param mixed $response The error response. * @param string $verb The verb that caused the error. * * @return void */ public function handle_error_response( $response, $verb ) { // TODO: Implement handle_error_response() method. } /** * Returns an array of arguments for the service request. * * @return array An array containing the arguments for creating a config. */ private function get_create_config_args() { return array( 'method' => 'POST', 'body' => array( 'name' => $this->model->get_name(), 'description' => $this->model->get_description(), 'package' => array( 'name' => 'SmartCrawl Pro', 'id' => SMARTCRAWL_PACKAGE_ID, ), 'config' => wp_json_encode( array( 'configs' => $this->model->get_configs(), 'strings' => $this->model->get_strings(), ) ), ), ); } /** * Returns an array of arguments used for updating a configuration. * * @return array An array of update configuration arguments. */ private function get_update_config_args() { return array( 'method' => 'POST', 'body' => array( 'name' => $this->model->get_name(), 'description' => $this->model->get_description(), 'package' => array( 'name' => 'SmartCrawl Pro', 'id' => SMARTCRAWL_PACKAGE_ID, ), ), ); } }