1 #ifndef COCOATWEET_OAUTH_KEY_H_
2 #define COCOATWEET_OAUTH_KEY_H_
9 const std::string consumerKey_;
10 const std::string consumerSecret_;
11 const std::string accessToken_;
12 const std::string accessTokenSecret_;
15 Key() : consumerKey_(
""), consumerSecret_(
""), accessToken_(
""), accessTokenSecret_(
"") {}
16 Key(
const std::string& _consumerKey,
const std::string& _consumerSecret,
17 const std::string& _accessToken,
const std::string& _accessTokenSecret)
18 : consumerKey_(_consumerKey),
19 consumerSecret_(_consumerSecret),
20 accessToken_(_accessToken),
21 accessTokenSecret_(_accessTokenSecret) {}
26 return consumerSecret_;
32 return accessTokenSecret_;
34 std::map<std::string, std::string>
noSecret()
const {
35 return std::map<std::string, std::string>{{
"oauth_consumer_key", consumerKey_},
36 {
"oauth_token", accessToken_}};
38 const std::map<std::string, std::string>
secret()
const {
39 return std::map<std::string, std::string>{{
"oauth_consumer_key", consumerSecret_},
40 {
"oauth_token", accessTokenSecret_}};