Favorite/Createのエンドポイント叩くやつ
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "cocoatweet/api/favorite/favorite.h"
|
||||
#include "cocoatweet/api/favorite/create.h"
|
||||
|
||||
namespace CocoaTweet::API::Favorites {
|
||||
Favorite::Favorite(std::shared_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
||||
oauth_ = _oauth;
|
||||
}
|
||||
|
||||
void Favorite::Create(const std::string& _id) const {
|
||||
CocoaTweet::API::Favorites::Create create;
|
||||
create.id(_id);
|
||||
create.process(oauth_, [](std::string _rcv) { std::cout << _rcv << std::endl; });
|
||||
}
|
||||
} // namespace CocoaTweet::API::Favorites
|
||||
Reference in New Issue
Block a user