public static function getDefaultConfiguration($handler = null)
    {
        $config = [
            'headers' => [
                'Accept' => 'application/json',
                'Content-Type' => 'application/json',
            ],
        ];

        if (!$handler) {
            $handler = HandlerStack::create();
            $handler->push(Middleware::mpxErrors(), 'mpx_errors');
        }
        $config['handler'] = $handler;

        return $config;
    }
public static function getDefaultConfiguration($handler = null)
    {
        $config = [
            'headers' => [
                'Accept' => 'application/json',
                'Content-Type' => 'application/json',
            ],
        ];

        if (!$handler) {
            $handler = HandlerStack::create();
            $handler->push(Middleware::mpxErrors(), 'mpx_errors');
        }
        $config['handler'] = $handler;

        return $config;
    }
public static function getDefaultConfiguration ( $ handler = null ) { $ config = [ 'headers' => [ 'Accept' => 'application/json' , 'Content-Type' => 'application/json' , ] , ] ; if ( ! $ handler ) { $ handler = HandlerStack :: create ( ) ; $ handler -> push ( Middleware :: mpxErrors ( ) , 'mpx_errors' ) ; } $ config [ 'handler' ] = $ handler ; return $ config ; }
Get the default Guzzle client configuration array.

@param mixed $handler (optional) A Guzzle handler to use for
requests. If a custom handler is specified, it must
include Middleware::mpxErrors or a replacement.

@return array An array of configuration options suitable for use with Guzzle.
Get the default Guzzle client configuration array .