title: Error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
body: <p>I tried to do a Clock News Weather Scrolling Marquee with the esp8266. But when I upload the code it's got an error. Can you help me?
  Here's a part of the code:( under the MIT License (Copyright 2018 David Payne))</p>
  <pre><code>  void PiHoleClient::getPiHoleData(String server, int port) {
  
    errorMessage = &quot;&quot;;
    String response = &quot;&quot;;
  
    String apiGetData = &quot;http://&quot; + server + &quot;:&quot; + String(port) + &quot;/admin/api.php?summary&quot;;
    Serial.println(&quot;Sending: &quot; + apiGetData);
    HTTPClient http;  //Object of class HTTPClient
    http.begin(apiGetData);// get the result (**the error code**)
    int httpCode = http.GET();
    //Check the returning code
    if (httpCode &gt; 0) {
      response = http.getString();
      http.end();   //Close connection
      if (httpCode != 200) {
        // Bad Response Code
        errorMessage = &quot;Error response (&quot; + String(httpCode) + &quot;): &quot; + response;
        Serial.println(errorMessage);
        return;  
      }
  </code></pre>
  <p>error:
  exit status 1
  call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)</p>