From d6a277f8feda0d5eb448190658d6733777cda8ca Mon Sep 17 00:00:00 2001 From: keita Date: Thu, 18 Feb 2021 18:37:31 +0900 Subject: [PATCH] =?UTF-8?q?statuses/destroy=E3=82=92=E5=8F=A9=E3=81=8F?= =?UTF-8?q?=E3=82=84=E3=81=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cocoatweet/api/status/destroy.cc | 10 ++++++++++ src/cocoatweet/api/status/destroy.h | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/cocoatweet/api/status/destroy.cc create mode 100644 src/cocoatweet/api/status/destroy.h diff --git a/src/cocoatweet/api/status/destroy.cc b/src/cocoatweet/api/status/destroy.cc new file mode 100644 index 0000000..51b3c67 --- /dev/null +++ b/src/cocoatweet/api/status/destroy.cc @@ -0,0 +1,10 @@ +#include "cocoatweet/api/status/destroy.h" + +namespace CocoaTweet::API::Statuses { +Destroy::Destroy() { +} +void Destroy::id(const std::string _id) { + url_ = "https://api.twitter.com/1.1/statuses/destroy/" + _id + ".json"; +} + +} // namespace CocoaTweet::API::Statuses diff --git a/src/cocoatweet/api/status/destroy.h b/src/cocoatweet/api/status/destroy.h new file mode 100644 index 0000000..ac410a1 --- /dev/null +++ b/src/cocoatweet/api/status/destroy.h @@ -0,0 +1,17 @@ +#ifndef COCOATWEET_API_STATUSES_DESTROY_H_ +#define COCOATWEET_API_STATUSES_DESTROY_H_ + +#include + +#include "cocoatweet/api/interface/postInterface.h" +//#include "cocoatweet/oauth/oauth.h" + +namespace CocoaTweet::API::Statuses { +class Destroy : public CocoaTweet::API::Interface::postInterface { +public: + Destroy(); + void id(const std::string _id); +}; +} // namespace CocoaTweet::API::Statuses + +#endif