Constantele de mai jos sunt definite de această extensie și vor fi disponibile doar dacă această extensie a fost compilată în interiorul PHP, sau a fost încărcată dinamic în timpul rulării.
Most of these constants involve problems, which are also described within the official OAuth » Problem Reporting documentation. Note however, that these constant names are specific to PHP, although the naming scheme is similar.
OAUTH_SIG_METHOD_RSASHA1
(string)
OAUTH_SIG_METHOD_HMACSHA1
(string)
OAuth HMAC-SHA1 signature method.
OAUTH_SIG_METHOD_HMACSHA256
(string)
This constant represents putting OAuth parameters in the Authorization header.
OAUTH_AUTH_TYPE_NONE
(string)
This constant indicates a NoAuth OAuth request.
OAUTH_AUTH_TYPE_URI
(string)
This constant represents putting OAuth parameters in the request URI.
OAUTH_AUTH_TYPE_FORM
(string)
This constant represents putting OAuth parameters as part of the HTTP POST body.
OAUTH_HTTP_METHOD_GET
(string)
Use the GET method for the OAuth request.
OAUTH_HTTP_METHOD_POST
(string)
Use the POST method for the OAuth request.
OAUTH_HTTP_METHOD_PUT
(string)
Use the PUT method for the OAuth request.
OAUTH_HTTP_METHOD_HEAD
(string)
Use the HEAD method for the OAuth request.
OAUTH_HTTP_METHOD_DELETE
(string)
OAUTH_REQENGINE_STREAMS
(integer)
OAUTH_REQENGINE_CURL
for
Curl.
OAUTH_REQENGINE_CURL
(integer)
OAUTH_REQENGINE_STREAMS
for PHP streams.
OAUTH_OK
(integer)
OAUTH_BAD_NONCE
(integer)
OAUTH_BAD_TIMESTAMP
(integer)
OAUTH_CONSUMER_KEY_UNKNOWN
(integer)
OAUTH_CONSUMER_KEY_REFUSED
(integer)
OAUTH_INVALID_SIGNATURE
(integer)
OAUTH_TOKEN_USED
(integer)
OAUTH_TOKEN_EXPIRED
(integer)
OAUTH_TOKEN_REVOKED
(integer)
OAUTH_TOKEN_REJECTED
(integer)
OAUTH_VERIFIER_INVALID
(integer)
OAUTH_PARAMETER_ABSENT
(integer)
OAUTH_SIGNATURE_METHOD_REJECTED
(integer)