interface周りの負債を改善
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user