Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By dambusio
#63109 Hi! I have a problem with response from League of legends API. I tried a couple of methods to receive data without success. My last code is:
Code: Select all        HTTPClient http;

        Serial.print("[HTTP] begin...\n");
        // configure traged server and url
       http.begin("https://eune.api.pvp.net/api/lol/eune/v1.4/summoner/by-name/resistorax?api_key=RGAPI-179de3c5-486c-4015-b833-a80ba2decf55",443); //HTTPS
        Serial.print("[HTTP] GET...\n");
        // start connection and send HTTP header
        int httpCode = http.GET();

        // httpCode will be negative on error
        if(httpCode > 0) {
            // HTTP header has been send and Server response header has been handled
            Serial.printf("[HTTP] GET... code: %d\n", httpCode);

            // file found at server
            if(httpCode == HTTP_CODE_OK) {
                String payload = http.getString();
                Serial.println(payload);
            }
        }
       delay(2000);


When I test on https://www.hurl.it/ - everything is ok, I can get answer. Any idea what problem is?