favorites/destroyを叩くやつ

This commit is contained in:
keita
2021-02-18 16:46:15 +09:00
parent 055ee555b1
commit 10eb11f3f5
5 changed files with 36 additions and 1 deletions
+7
View File
@@ -2,6 +2,7 @@
#include "cocoatweet/api/favorite/favorite.h"
#include "cocoatweet/api/favorite/create.h"
#include "cocoatweet/api/favorite/destroy.h"
namespace CocoaTweet::API::Favorites {
Favorite::Favorite(std::shared_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
@@ -13,4 +14,10 @@ void Favorite::Create(const std::string& _id) const {
create.id(_id);
create.process(oauth_, [](std::string _rcv) { std::cout << _rcv << std::endl; });
}
void Favorite::Destroy(const std::string& _id) const {
CocoaTweet::API::Favorites::Destroy destroy;
destroy.id(_id);
destroy.process(oauth_, [](std::string _rcv) { std::cout << _rcv << std::endl; });
}
} // namespace CocoaTweet::API::Favorites