You are here

public function OAuthStoreSQL::deleteConsumerRequestToken in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/store/OAuthStoreSQL.php \OAuthStoreSQL::deleteConsumerRequestToken()
  2. 7.2 lib/oauth-php/library/store/OAuthStoreSQL.php \OAuthStoreSQL::deleteConsumerRequestToken()
  3. 7.3 lib/oauth-php/library/store/OAuthStoreSQL.php \OAuthStoreSQL::deleteConsumerRequestToken()
  4. 7.4 lib/oauth-php/library/store/OAuthStoreSQL.php \OAuthStoreSQL::deleteConsumerRequestToken()
  5. 7.5 lib/oauth-php/library/store/OAuthStoreSQL.php \OAuthStoreSQL::deleteConsumerRequestToken()

* Delete a consumer token. The token must be a request or authorized token. * *

Parameters

string token:

Overrides OAuthStoreAbstract::deleteConsumerRequestToken

File

lib/oauth-php/library/store/OAuthStoreSQL.php, line 1281

Class

OAuthStoreSQL

Code

public function deleteConsumerRequestToken($token) {
  $this
    ->query('
					DELETE FROM oauth_server_token
					WHERE ost_token 	 = \'%s\'
					  AND ost_token_type = \'request\'
					', $token);
}