OAuth::setAuthType
(PECL OAuth >= 0.99.1)
OAuth::setAuthType — Set authorization type
Description
Set where the OAuth parameters should be passed.
Parameters
-
auth_type
-
auth_type
can be one of the following flags (in order of decreasing preference as per OAuth 1.0 section 5.2):-
OAUTH_AUTH_TYPE_AUTHORIZATION
- Pass the OAuth parameters in the HTTP Authorization header.
-
OAUTH_AUTH_TYPE_FORM
- Append the OAuth parameters to the HTTP POST request body.
-
OAUTH_AUTH_TYPE_URI
- Append the OAuth parameters to the request URI.
-
OAUTH_AUTH_TYPE_NONE
- None.
-
Return Values
Returns TRUE
if a parameter is correctly set, otherwise FALSE
(e.g., if an invalid auth_type
is passed in.)
Changelog
Version | Description |
---|---|
1.0.0 |
Previously returned NULL on failure, instead of FALSE .
|
- Функция OAuth::__construct() - Create a new OAuth object
- Функция OAuth::__destruct() - The destructor
- Функция OAuth::disableDebug() - Turn off verbose debugging
- Функция OAuth::disableRedirects() - Turn off redirects
- Функция OAuth::disableSSLChecks() - Turn off SSL checks
- Функция OAuth::enableDebug() - Turn on verbose debugging
- Функция OAuth::enableRedirects() - Turn on redirects
- Функция OAuth::enableSSLChecks() - Turn on SSL checks
- Функция OAuth::fetch() - Fetch an OAuth protected resource
- Функция OAuth::generateSignature() - Generate a signature
- Функция OAuth::getAccessToken() - Fetch an access token
- Функция OAuth::getCAPath() - Gets CA information
- Функция OAuth::getLastResponse() - Get the last response
- Функция OAuth::getLastResponseHeaders() - Get headers for last response
- Функция OAuth::getLastResponseInfo() - Get HTTP information about the last response
- Функция OAuth::getRequestHeader() - Generate OAuth header string signature
- Функция OAuth::getRequestToken() - Fetch a request token
- Функция OAuth::setAuthType() - Set authorization type
- Функция OAuth::setCAPath() - Set CA path and info
- Функция OAuth::setNonce() - Set the nonce for subsequent requests
- Функция OAuth::setRequestEngine() - The setRequestEngine purpose
- Функция OAuth::setRSACertificate() - Set the RSA certificate
- Функция OAuth::setSSLChecks() - Tweak specific SSL checks for requests.
- Функция OAuth::setTimestamp() - Set the timestamp
- Функция OAuth::setToken() - Sets the token and secret
- Функция OAuth::setVersion() - Set the OAuth version
Коментарии
404 Not Found