コードヲチョットソウジシタ

This commit is contained in:
keita
2021-02-18 18:45:10 +09:00
parent 106da593c5
commit a62d0fe7ff
4 changed files with 16 additions and 37 deletions
+2 -11
View File
@@ -28,17 +28,8 @@ std::map<std::string, std::string> OAuth1::signature(
tmp.push_back(key + "=" + value);
std::cout << (key + "=" + value) << std::endl;
}
//std::ostringstream os;
//std::copy(tmp.begin(), tmp.end(), std::ostream_iterator<std::string>(os, "&"));
//std::string query = os.str();
/*std::string query = "";
for(auto v : tmp){
query += (v + "&");
}
if(!query.empty()){
query.pop_back();
}*/
std::string query = CocoaTweet::Util::join(tmp, "&");
std::string query = CocoaTweet::Util::join(tmp, "&");
auto significateKey = key().consumerSecret() + "&" + key().accessTokenSecret();
auto significateBase = _method + "&" + CocoaTweet::Util::urlEncode(_url) + "&" +