protected function getRequestHeaders($sendData = false)
    {
        $headers = [
            'Accept'     => 'application/json',
            'User-Agent' => $this->options->userAgent() . '/' . Client::VERSION,
        ];

        if ($sendData) {
            $headers['Content-Type'] = 'application/json;charset=utf-8';
        }

        return $headers;
    }
protected function getRequestHeaders($sendData = false)
    {
        $headers = [
            'Accept'     => 'application/json',
            'User-Agent' => $this->options->userAgent() . '/' . Client::VERSION,
        ];

        if ($sendData) {
            $headers['Content-Type'] = 'application/json;charset=utf-8';
        }

        return $headers;
    }
protected function getRequestHeaders ( $ sendData = false ) { $ headers = [ 'Accept' => 'application/json' , 'User-Agent' => $ this -> options -> userAgent ( ) . '/' . Client :: VERSION , ] ; if ( $ sendData ) { $ headers [ 'Content-Type' ] = 'application/json;charset=utf-8' ; } return $ headers ; }
Get request headers.

@param  bool $sendData If request send data or not.

@return array
Get request headers .