3 namespace Friendica\Security\OAuth1;
5 use Friendica\Security\OAuth1\OAuthUtil;
9 // access tokens and request tokens
19 * secret = the token secret
24 function __construct($key, $secret)
27 $this->secret = $secret;
31 * generates the basic string serialization of a token that a server
32 * would respond to request_token and access_token calls with
36 return "oauth_token=" .
37 OAuthUtil::urlencode_rfc3986($this->key) .
38 "&oauth_token_secret=" .
39 OAuthUtil::urlencode_rfc3986($this->secret);
44 return $this->to_string();