Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e18ffa2

Browse files
committed
Add logout method
1 parent e17658d commit e18ffa2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/codebird.php

+13
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,19 @@ public function setToken($token, $secret)
201201
$this->_oauth_token_secret = $secret;
202202
}
203203

204+
/**
205+
* Forgets the OAuth request or access token and secret (User key)
206+
*
207+
* @return bool
208+
*/
209+
public function logout()
210+
{
211+
$this->_oauth_token =
212+
$this->_oauth_token_secret = null;
213+
214+
return true;
215+
}
216+
204217
/**
205218
* Sets if codebird should use cURL
206219
*

0 commit comments

Comments
 (0)