protected override string RunInBackground(params string[] @params) { string url = string.Format("http://sandbox.api.simsimi.com/request.p?key={0}&lc=en&ft=1.0&text={1}", API_KEY, mainActivity.user_message.Text); HttpDataHandler dataHandler = new HttpDataHandler(); return(dataHandler.GetHTTPData(url)); }
protected override string RunInBackground(params string[] @params) { string stream = null; string urlString = @params[0]; HttpDataHandler http = new HttpDataHandler(); stream = http.GetHTTPData(urlString); return(stream); }
protected override string RunInBackground(params string[] @params) { string urlString = @params[0]; HttpDataHandler http = new HttpDataHandler(); selectedUser.user = newUser; string json = JsonConvert.SerializeObject(selectedUser); http.DeleteHTTPData(urlString, json); return(string.Empty); }
protected override string RunInBackground(params string[] @params) { string response; try { string address = @params[0]; HttpDataHandler http = new HttpDataHandler(); string url = string.Format("https://maps.googleapis.com/maps/api/geocode/json?address={0}", address); response = http.GetHTTPData(url); return(response); }catch (Exception ex) { return(null); } //throw new System.NotImplementedException(); }
public async Task <string> GetNameLocation(string address) { try { var http = new HttpDataHandler(); var url = $"https://maps.googleapis.com/maps/api/geocode/json?address={address}"; var responese = http.GetHTTPDataAsync(url); return(responese); } catch (Exception e) { Crashes.TrackError(e); return(""); } }
protected override string RunInBackground(params string[] @params) { string result = new HttpDataHandler().GetHttpData(@params[0]); return(result); }