/// <summary> /// Method to obtain data from 'getAvailableNetworks' API method. This method makes a GET request. /// </summary> /// <param name="coexpdata">Data to be sent to 'getAvailableNetworks' CoExp API method</param> /// <returns>Response received from 'getAvailableNetworks' CoExp API method</returns> public string GetAvailableNetworks(CoexpParams coexpdata) { //Set the URL with parameters. This URL will allow us to establish a communication with //CoExp R application API (published using Plumber R package) if (coexpURL == ProductionEnv) { coexpURL += "GetAvailableNetworks"; } else { coexpURL += "getAvailableNetworks"; } PostData = "{\"category\":\"" + coexpdata.Category + "\"}"; //Make the request var finalResponse = _adapter.POSTHttpRequestJSON(coexpURL, PostData); //Return the response return(finalResponse); }