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,15 +3,16 @@
namespace CocoaTweet::API::Statuses {
Update::Update() {
contentType_ = "application/x-www-form-urlencoded";
url_ = "https://api.twitter.com/1.1/statuses/update.json";
url_ = "https://api.twitter.com/1.1/statuses/update.json";
}
void Update::status(const std::string _status) {
status_ = _status;
bodyParam_.insert_or_assign("status", status_);
}
void Update::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth){
postInterface::process(_oauth, [](const std::string& _srv){std::cout << _srv << std::endl;});
void Update::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
postInterface::process(_oauth,
[](const std::string& _srv) { std::cout << _srv << std::endl; });
}
} // namespace CocoaTweet::API::Statuses