package com.infonuascape.osrshelper.tracker.cml;

import com.android.volley.Request;
import com.infonuascape.osrshelper.utils.exceptions.PlayerNotFoundException;
import com.infonuascape.osrshelper.utils.http.NetworkStack;

import java.io.IOException;
import java.net.URLEncoder;

/**
 * This class contains a single method that updates a user on RuneTracker. This
 * is defined as calling an HTTP endpoint which adds a point of data in the
 * user's stats history table.
 * 
 * @author Cynthia of irc.rscript.org
 */
public class Updater {
	/**
	 * Updates the given <code>user</code> on RuneTracker.
	 * 
	 * @param user
	 *            Name of the user to update. Since 2009-10-01, this is the
	 *            display name of the user, not his or her login name.
	 * @throws IOException
	 *             if the HTTP endpoint connection needed to update the
	 *             <code>user</code> throws <tt>IOException</tt>
	 * @throws PlayerNotFoundException
	 */
	public static void perform(final String user) throws IOException, PlayerNotFoundException {
		android.util.Log.i("Updater", "Hey! I'm updating!");
		String connectionString = "http://runetracker.org/updateUser.php?user=" + URLEncoder.encode(user, "utf-8");
		NetworkStack.getInstance().performRequest(connectionString, Request.Method.GET);
	}
}

@@ -277,686 +277,31 @@
 r;%0A%0A
-/**%0A * This class contains a single method that updates a user on RuneTracker. This%0A * is defined as calling an HTTP endpoint which adds a point of data in the%0A * user's stats history table.%0A * %0A * @author Cynthia of irc.rscript.org%0A */%0Apublic class Updater %7B%0A%09/**%0A%09 * Updates the given %3Ccode%3Euser%3C/code%3E on RuneTracker.%0A%09 * %0A%09 * @param user%0A%09 *            Name of the user to update. Since 2009-10-01, this is the%0A%09 *            display name of the user, not his or her login name.%0A%09 * @throws IOException%0A%09 *             if the HTTP endpoint connection needed to update the%0A%09 *             %3Ccode%3Euser%3C/code%3E throws %3Ctt%3EIOException%3C/tt%3E%0A%09 * @throws PlayerNotFoundException%0A%09 */
+public class Updater %7B%0A
 %0A%09pu
@@ -482,44 +482,64 @@
 http
+s
 ://
-runetracker.org/updateUser.php?us
+crystalmathlabs.com/tracker/api.php?type=update&play
 er=%22

Fix CML Update to proper API endpoint