整形
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user