This commit is contained in:
keita
2021-02-20 23:03:29 +09:00
parent 8600dff037
commit 788eda9d4a
6 changed files with 17 additions and 14 deletions
+4 -3
View File
@@ -3,14 +3,15 @@
namespace CocoaTweet::API::Favorites {
Destroy::Destroy() {
contentType_ = "application/x-www-form-urlencoded";
url_ = "https://api.twitter.com/1.1/favorites/destroy.json";
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;});
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