function OAuthRequest::checks in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.3 lib/oauth-php/library/OAuthRequest.php \OAuthRequest::checks()
* Perform some sanity checks. * * @exception OAuthException2 thrown when sanity checks failed
2 calls to OAuthRequest::checks()
- OAuthRequest::calculateSignature in lib/
oauth-php/ library/ OAuthRequest.php - * Calculate the signature of the request, using the method in oauth_signature_method. * The signature is returned encoded in the form as used in the url. So the base64 and * urlencoding has been done. * *
- OAuthRequestVerifier::verifySignature in lib/
oauth-php/ library/ OAuthRequestVerifier.php - * Verify the signature of the request, using the method in oauth_signature_method. * The signature is returned encoded in the form as used in the url. So the base64 and * urlencoding has been done. * *
File
- lib/
oauth-php/ library/ OAuthRequest.php, line 303
Class
- OAuthRequest
- Object to parse an incoming OAuth request or prepare an outgoing OAuth request
Code
function checks() {
if (isset($this->param['oauth_version'])) {
$version = $this
->urldecode($this->param['oauth_version']);
if ($version != '1.0') {
throw new OAuthException2('Expected OAuth version 1.0, got "' . $this->param['oauth_version'] . '"');
}
}
}