interface周りの負債を改善

This commit is contained in:
keita
2021-02-20 22:29:49 +09:00
parent a62d0fe7ff
commit 8600dff037
12 changed files with 36 additions and 8 deletions
+5
View File
@@ -2,10 +2,15 @@
namespace CocoaTweet::API::Favorites {
Destroy::Destroy() {
contentType_ = "application/x-www-form-urlencoded";
url_ = "https://api.twitter.com/1.1/favorites/destroy.json";
}
void Destroy::id(const std::string& _id) {
bodyParam_.insert_or_assign("id", _id);
}
void Destroy::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth){
postInterface::process(_oauth, [](const std::string& _srv){std::cout << _srv << std::endl;});
}
} // namespace CocoaTweet::API::Favorites