public function doApiCall()
    {
        $parsedResponse = array();
        $jsonResponse = false;

        $curlUrl = $this->createUrl();
        
        if ($curlUrl) {
            $jsonResponse = $this->submitCurlRequest($curlUrl);
        }

        if ($jsonResponse) {
            $parsedResponse = $this->parseJsonResponse($jsonResponse);
        }

        return $parsedResponse;
    }
public function doApiCall()
    {
        $parsedResponse = array();
        $jsonResponse = false;

        $curlUrl = $this->createUrl();
        
        if ($curlUrl) {
            $jsonResponse = $this->submitCurlRequest($curlUrl);
        }

        if ($jsonResponse) {
            $parsedResponse = $this->parseJsonResponse($jsonResponse);
        }

        return $parsedResponse;
    }
public function doApiCall ( ) { $ parsedResponse = array ( ) ; $ jsonResponse = false ; $ curlUrl = $ this -> createUrl ( ) ; if ( $ curlUrl ) { $ jsonResponse = $ this -> submitCurlRequest ( $ curlUrl ) ; } if ( $ jsonResponse ) { $ parsedResponse = $ this -> parseJsonResponse ( $ jsonResponse ) ; } return $ parsedResponse ; }
This is a wrapper to execute the entire process of an API call. It initiates
the creation of the URL, and using the returned URL it initiates the curl
request, and the resulting JSON is then sent to the parser.  The end result
is a usable array.

@return array
This is a wrapper to execute the entire process of an API call . It initiates the creation of the URL and using the returned URL it initiates the curl request and the resulting JSON is then sent to the parser . The end result is a usable array .