I'm pretty weak at HTTP requests and im trying to practice my skills in it, however im really stuck.. i have googled and searched and tried but yet here i am... I have made task for my self Where i want to fetch all this data from the api as json and use the data. I can't see to get the data.
I'm trying to
Request From server
Get JSON Response from it
Use the JSON as i want.
However i'm even failing at step 1...
Here's what im doing:-
I need to get the json from this url > URL JSON RESPONSE CLICK
and i just want to get the json in the unity.
I'm trying to make a HTTP request but it's failing
private void GetJSONFromWeb()
{
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create("https://ow-api.com/v1/stats/pc/eu/Epzz-2845/profile");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string jsonResponse = reader.ReadToEnd();
object info = JsonUtility.FromJson<object>(jsonResponse);
Debug.Log(info);
}
and i get a
TlsException: The authentication or decryption has failed.
I have tried several solutions including THIS and doesn't work... i'm really
I Dont want to use Unity API, i want to use HTTP request and .net