public function request($type, $url, $args = [])
    {
        $response = $this->getHTTPClient()
            ->$type($url, $args)
            ->getBody()
            ->getContents();

        return json_decode($response);
    }
public function request($type, $url, $args = [])
    {
        $response = $this->getHTTPClient()
            ->$type($url, $args)
            ->getBody()
            ->getContents();

        return json_decode($response);
    }
public function request ( $ type , $ url , $ args = [ ] ) { $ response = $ this -> getHTTPClient ( ) -> $ type ( $ url , $ args ) -> getBody ( ) -> getContents ( ) ; return json_decode ( $ response ) ; }
Our main request method to Montage.  Uses Guzzle under
the hood to make the request, and will return the
json_decoded response from Montage.

@param $type
@param $url
@param array $args
@return mixed
Our main request method to Montage . Uses Guzzle under the hood to make the request and will return the json_decoded response from Montage .