GA_Request.RequestGameInfo C# (CSharp) Method

RequestGameInfo() public method

public RequestGameInfo ( SubmitSuccessHandler successEvent, SubmitErrorHandler errorEvent ) : WWW
successEvent SubmitSuccessHandler
errorEvent SubmitErrorHandler
return WWW
	public WWW RequestGameInfo(SubmitSuccessHandler successEvent, SubmitErrorHandler errorEvent)
	{ 
		string game_key = GA.SettingsGA.GameKey;
		
		string requestInfo = "game_key=" + game_key + "&keys=area%7Cevent_id%7Cbuild";
		
		requestInfo = requestInfo.Replace(" ", "%20");
		
		//Get the url with the request type
		string url = GetURL(Requests[RequestType.GA_GetHeatmapGameInfo]);
		
		url += "/?" + requestInfo;
		
		WWW www = null;
		
		#if !UNITY_WP8 && !UNITY_METRO
		
		//Set the authorization header to contain an MD5 hash of the JSON array string + the private key
		Hashtable headers = new Hashtable();
		headers.Add("Authorization", GA.API.Submit.CreateMD5Hash(requestInfo + GA.SettingsGA.ApiKey));
		
		//Try to send the data
		www = new WWW(url, new byte[] { 0 }, headers);
		
		#else
		
		//Set the authorization header to contain an MD5 hash of the JSON array string + the private key
		Dictionary<string, string> headers = new Dictionary<string, string>();
		headers.Add("Authorization", GA.API.Submit.CreateMD5Hash(requestInfo + GA.SettingsGA.ApiKey));
		
		//Try to send the data
		www = new WWW(url, new byte[] { 0 }, headers);
		
		#endif
		
		GA.RunCoroutine(Request(www, RequestType.GA_GetHeatmapGameInfo, successEvent, errorEvent),()=>www.isDone);
		
		return www;
	}