21 lines
640 B
C++
21 lines
640 B
C++
#include <cocoatweet/api/status/unretweet.h>
|
|
|
|
namespace CocoaTweet::API::Statuses {
|
|
Unretweet::Unretweet() {}
|
|
|
|
void Unretweet::id(const std::string& _id) {
|
|
contentType_ = "application/x-www-form-urlencoded";
|
|
url_ = "https://api.twitter.com/1.1/statuses/unretweet/" + _id + ".json";
|
|
}
|
|
|
|
CocoaTweet::API::Model::Tweet Unretweet::process(
|
|
std::weak_ptr<CocoaTweet::Authentication::AuthenticatorBase> _oauth) {
|
|
CocoaTweet::API::Model::Tweet tweet;
|
|
HttpPost::process(_oauth, [&tweet](const std::string& _rcv) {
|
|
tweet = CocoaTweet::API::Model::Tweet(_rcv);
|
|
});
|
|
|
|
return tweet;
|
|
}
|
|
} // namespace CocoaTweet::API::Statuses
|