4 * Copyright (c) 2007 Andy Smith
6 namespace Abraham\TwitterOAuth;
16 * @param string $key The OAuth Token
17 * @param string $secret The OAuth Token Secret
19 public function __construct($key, $secret)
22 $this->secret = $secret;
26 * Generates the basic string serialization of a token that a server
27 * would respond to request_token and access_token calls with
31 public function __toString()
33 return sprintf("oauth_token=%s&oauth_token_secret=%s",
34 Util::urlencodeRfc3986($this->key),
35 Util::urlencodeRfc3986($this->secret)