protected function _buildAuth($data)
    {
        $out = 'OAuth ';
        $params = [];
        foreach ($data as $key => $value) {
            $params[] = $key . '="' . $this->_encode($value) . '"';
        }
        $out .= implode(',', $params);

        return $out;
    }
protected function _buildAuth($data)
    {
        $out = 'OAuth ';
        $params = [];
        foreach ($data as $key => $value) {
            $params[] = $key . '="' . $this->_encode($value) . '"';
        }
        $out .= implode(',', $params);

        return $out;
    }
protected function _buildAuth ( $ data ) { $ out = 'OAuth ' ; $ params = [ ] ; foreach ( $ data as $ key => $ value ) { $ params [ ] = $ key . '="' . $ this -> _encode ( $ value ) . '"' ; } $ out .= implode ( ',' , $ params ) ; return $ out ; }
Builds the Oauth Authorization header value.

@param array $data The oauth_* values to build
@return string
Builds the Oauth Authorization header value .