public void InvokeServiceMethod(ReignScores_ServiceTypes type, string method, CallbackMethod callback, MonoBehaviour services, params string[] args)
 {
     if (callback != null)
     {
         string url = string.Format("{0}{1}/{2}.cshtml", reignScoresURL, convertType(type), method);
         Debug.Log("Invoking URL: " + url);
         services.StartCoroutine(invokeWebMethod(convertAPI_Key(type), url, callback, args));
     }
 }
		private string convertType(ReignScores_ServiceTypes type)
		{
			switch (type)
			{
				case ReignScores_ServiceTypes.Games: return "Games";
				case ReignScores_ServiceTypes.Users: return "Users";
				default: throw new Exception("Invalid type: " + type);
			}
		}
        private string convertAPI_Key(ReignScores_ServiceTypes type)
        {
            switch (type)
            {
            case ReignScores_ServiceTypes.Games: return(gameAPIKey);

            case ReignScores_ServiceTypes.Users: return(userAPIKey);

            default: throw new Exception("Invalid type: " + type);
            }
        }
        private string convertType(ReignScores_ServiceTypes type)
        {
            switch (type)
            {
            case ReignScores_ServiceTypes.Games: return("Games");

            case ReignScores_ServiceTypes.Users: return("Users");

            default: throw new Exception("Invalid type: " + type);
            }
        }
		private string convertAPI_Key(ReignScores_ServiceTypes type)
		{
			switch (type)
			{
				case ReignScores_ServiceTypes.Games: return gameAPIKey;
				case ReignScores_ServiceTypes.Users: return userAPIKey;
				default: throw new Exception("Invalid type: " + type);
			}
		}
		public void InvokeServiceMethod(ReignScores_ServiceTypes type, string method, CallbackMethod callback, MonoBehaviour services, params string[] args)
		{
			if (callback != null)
			{
				string url = string.Format("{0}{1}/{2}.cshtml", reignScoresURL, convertType(type), method);
				Debug.Log("Invoking URL: " + url);
				services.StartCoroutine(invokeWebMethod(convertAPI_Key(type), url, callback, args));
			}
		}