Obsolete Members for QAbstractOAuth2 | Qt Network Authorization | Qt 6.11.1
Description: The QAbstractOAuth2 class is the base of all implementations of OAuth 2 authentication methods.

- Qt 6.11
- Qt Network Authorization
- C++ Classes
- QAbstractOAuth2
- Qt Network Authorization | Commercial or GPLv3

# Obsolete Members for QAbstractOAuth2

The following members of class QAbstractOAuth2 are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

## Public Functions

`(deprecated in 6.11)` virtual QNetworkReply * | post(const QUrl &url, QHttpMultiPart *multiPart) | [see note below]
`(deprecated in 6.11)` virtual QNetworkReply * | post(const QUrl &url, const QByteArray &data) | [see note below]
`(deprecated in 6.11)` virtual QNetworkReply * | put(const QUrl &url, QHttpMultiPart *multiPart) | [see note below]
`(deprecated in 6.11)` virtual QNetworkReply * | put(const QUrl &url, const QByteArray &data) | [see note below]

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

## Member Function Documentation

### `[override virtual invokable, deprecated in 6.11]` QNetworkReply *QAbstractOAuth2::deleteResource(const QUrl &url, const QVariantMap &parameters = QVariantMap())

This function is deprecated since 6.11. We strongly advise against using it in new code.

Reimplements: QAbstractOAuth::deleteResource(const QUrl &url, const QVariantMap &parameters).

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated DELETE request and returns a new QNetworkReply. The url and parameters are used to create the request.

See also: Hypertext Transfer Protocol – HTTP/1.1: DELETE

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

### `[override virtual invokable, deprecated in 6.11]` QNetworkReply *QAbstractOAuth2::get(const QUrl &url, const QVariantMap &parameters = QVariantMap())

This function is deprecated since 6.11. We strongly advise against using it in new code.

Reimplements: QAbstractOAuth::get(const QUrl &url, const QVariantMap &parameters).

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated GET request and returns a new QNetworkReply. The url and parameters are used to create the request.

See also: Hypertext Transfer Protocol – HTTP/1.1: GET

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

### `[override virtual invokable, deprecated in 6.11]` QNetworkReply *QAbstractOAuth2::head(const QUrl &url, const QVariantMap &parameters = QVariantMap())

This function is deprecated since 6.11. We strongly advise against using it in new code.

Reimplements: QAbstractOAuth::head(const QUrl &url, const QVariantMap &parameters).

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated HEAD request and returns a new QNetworkReply. The url and parameters are used to create the request.

See also: Hypertext Transfer Protocol – HTTP/1.1: HEAD

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

### `[override virtual invokable, deprecated in 6.11]` QNetworkReply *QAbstractOAuth2::post(const QUrl &url, const QVariantMap &parameters = QVariantMap())

This function is deprecated since 6.11. We strongly advise against using it in new code.

Reimplements: QAbstractOAuth::post(const QUrl &url, const QVariantMap &parameters).

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated POST request and returns a new QNetworkReply. The url and parameters are used to create the request.

See also: Hypertext Transfer Protocol – HTTP/1.1: POST

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

### `[virtual invokable, deprecated in 6.11]` QNetworkReply *QAbstractOAuth2::post(const QUrl &url, QHttpMultiPart *multiPart)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated POST request and returns a new QNetworkReply. The url and multiPart are used to create the request.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

This is an overloaded function.

See also post(), QHttpMultiPart, and Hypertext Transfer Protocol -- HTTP/1.1: POST.

### `[virtual invokable, deprecated in 6.11]` QNetworkReply *QAbstractOAuth2::post(const QUrl &url, const QByteArray &data)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated POST request and returns a new QNetworkReply. The url and data are used to create the request.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

This is an overloaded function.

See also post() and Hypertext Transfer Protocol -- HTTP/1.1: POST.

### `[override virtual invokable, deprecated in 6.11]` QNetworkReply *QAbstractOAuth2::put(const QUrl &url, const QVariantMap &parameters = QVariantMap())

This function is deprecated since 6.11. We strongly advise against using it in new code.

Reimplements: QAbstractOAuth::put(const QUrl &url, const QVariantMap &parameters).

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated PUT request and returns a new QNetworkReply. The url and parameters are used to create the request.

See also: Hypertext Transfer Protocol – HTTP/1.1: PUT

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

### `[virtual invokable, deprecated in 6.11]` QNetworkReply *QAbstractOAuth2::put(const QUrl &url, QHttpMultiPart *multiPart)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated PUT request and returns a new QNetworkReply. The url and multiPart are used to create the request.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

This is an overloaded function.

See also put(), QHttpMultiPart, and Hypertext Transfer Protocol -- HTTP/1.1: PUT.

### `[virtual invokable, deprecated in 6.11]` QNetworkReply *QAbstractOAuth2::put(const QUrl &url, const QByteArray &data)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated PUT request and returns a new QNetworkReply. The url and data are used to create the request.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

This is an overloaded function.

See also put() and Hypertext Transfer Protocol -- HTTP/1.1: PUT.