new.h
Go to the documentation of this file.
#ifndef COCOATWEET_API_DIRECTMESSAGE_NEW_H_
#define COCOATWEET_API_DIRECTMESSAGE_NEW_H_
#include <cocoatweet/api/interface/httpPost.h>
#include <cocoatweet/api/model/tweet.h>
#include <vector>
#include <utility>
#include <memory>
#include "nlohmann/json.hpp"
namespace CocoaTweet::API::DirectMessages {
class New : public CocoaTweet::API::Interface::HttpPost {
public:
New();
void recipient(const std::string& _id);
void message(const std::string& _message);
void process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth);
private:
std::string status_;
nlohmann::json json_;
};
} // namespace CocoaTweet::API::DirectMessages
#endif
CocoaTweet::API::DirectMessages::New::recipient
void recipient(const std::string &_id)
Definition: new.cc:18
CocoaTweet::API::DirectMessages::New::message
void message(const std::string &_message)
Definition: new.cc:22
CocoaTweet::API::DirectMessages
Definition: directMessage.cc:4
CocoaTweet::API::Interface::HttpPost
class for Send request with POST method
Definition: httpPost.h:10
CocoaTweet::API::DirectMessages::New::process
void process(std::weak_ptr< CocoaTweet::OAuth::OAuth1 > _oauth)
process request for endpoint
Definition: new.cc:26
tweet.h
CocoaTweet::API::DirectMessages::New::New
New()
Definition: new.cc:6
httpPost.h
CocoaTweet::API::DirectMessages::New
class for using statuses/update endpoint
Definition: new.h:13