statuses/destroyを叩くやつ

This commit is contained in:
keita
2021-02-18 18:37:31 +09:00
parent 7f94d6aaab
commit d6a277f8fe
2 changed files with 27 additions and 0 deletions
+10
View File
@@ -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
+17
View File
@@ -0,0 +1,17 @@
#ifndef COCOATWEET_API_STATUSES_DESTROY_H_
#define COCOATWEET_API_STATUSES_DESTROY_H_
#include <memory>
#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