protected function getAbsoluteUrl($request)
        {
            $request = ltrim($request);

            if (strpos($request, 'http') === 0) {
                return $request;
            }

            return $this->apiUrl . $request;
        }
protected function getAbsoluteUrl($request)
        {
            $request = ltrim($request);

            if (strpos($request, 'http') === 0) {
                return $request;
            }

            return $this->apiUrl . $request;
        }
protected function getAbsoluteUrl ( $ request ) { $ request = ltrim ( $ request ) ; if ( strpos ( $ request , 'http' ) === 0 ) { return $ request ; } return $ this -> apiUrl . $ request ; }
Checks the given request string and returns the absolute URL to make
the necessary API call

@param string $request

@return string
Checks the given request string and returns the absolute URL to make the necessary API call