lib/mercadopago.php
public function get($request, $params = null, $authenticate = true) {
        if (is_string ($request)) {
            $request = array(
                "uri" => $request,
                "params" => $params,
                "authenticate" => $authenticate
            );
        }

        $request["params"] = isset ($request["params"]) && is_array ($request["params"]) ? $request["params"] : array();

        if (!isset ($request["authenticate"]) || $request["authenticate"] !== false) {
            $request["params"]["access_token"] = $this->get_access_token();
        }

        $result = MPRestClient::get($request);
        return $result;
    }
public function get($request, $params = null, $authenticate = true) {
        if (is_string ($request)) {
            $request = array(
                "uri" => $request,
                "params" => $params,
                "authenticate" => $authenticate
            );
        }

        $request["params"] = isset ($request["params"]) && is_array ($request["params"]) ? $request["params"] : array();

        if (!isset ($request["authenticate"]) || $request["authenticate"] !== false) {
            $request["params"]["access_token"] = $this->get_access_token();
        }

        $result = MPRestClient::get($request);
        return $result;
    }
public function get ( $ request , $ params = null , $ authenticate = true ) { if ( is_string ( $ request ) ) { $ request = array ( "uri" => $ request , "params" => $ params , "authenticate" => $ authenticate ) ; } $ request [ "params" ] = isset ( $ request [ "params" ] ) && is_array ( $ request [ "params" ] ) ? $ request [ "params" ] : array ( ) ; if ( ! isset ( $ request [ "authenticate" ] ) || $ request [ "authenticate" ] !== false ) { $ request [ "params" ] [ "access_token" ] = $ this -> get_access_token ( ) ; } $ result = MPRestClient :: get ( $ request ) ; return $ result ; }
Generic resource get
@param request
@param params (deprecated)
@param authenticate = true (deprecated)
Generic resource get