api.h
Go to the documentation of this file.
#ifndef COCOATWEET_API_API_H_
#define COCOATWEET_API_API_H_
#include <cocoatweet/api/status/status.h>
#include <cocoatweet/api/favorite/favorite.h>
#include <cocoatweet/api/media/media.h>
#include <cocoatweet/api/directMessage/directMessage.h>
#include <cocoatweet/oauth/oauth.h>
namespace CocoaTweet::API {
class API {
public:
API(CocoaTweet::OAuth::Key _key);
Statuses::Status status() const;
Favorites::Favorite favorite() const;
Medias::Media media() const;
DirectMessages::DirectMessage directMessage() const;
const std::string& generateBearerToken() const;
private:
Statuses::Status status_;
Favorites::Favorite favorite_;
Medias::Media media_;
DirectMessages::DirectMessage directMessage_;
std::shared_ptr<CocoaTweet::OAuth::OAuth1> oauth_;
};
} // namespace CocoaTweet::API
#endif
media.h
CocoaTweet::API::API::favorite
Favorites::Favorite favorite() const
Getter for Grouped by Favorites/*.
Definition: api.cc:20
CocoaTweet::API::API::media
Medias::Media media() const
Definition: api.cc:24
CocoaTweet::API::API::status
Statuses::Status status() const
Getter for Grouped by Statuses/*.
Definition: api.cc:16
CocoaTweet::API::API::directMessage
DirectMessages::DirectMessage directMessage() const
Definition: api.cc:28
CocoaTweet::API::Favorites::Favorite
Definition: favorite.h:9
directMessage.h
CocoaTweet::API::DirectMessages::DirectMessage
Entory point for statuses/*.
Definition: directMessage.h:13
CocoaTweet::API::API::API
API(CocoaTweet::OAuth::Key _key)
primary constructor
Definition: api.cc:4
CocoaTweet::API
Definition: api.cc:3
CocoaTweet::API::API
Twitter API Entry Point.
Definition: api.h:12
CocoaTweet::OAuth::Key
Definition: key.h:8
CocoaTweet::API::API::generateBearerToken
const std::string & generateBearerToken() const
Definition: api.cc:12
favorite.h
CocoaTweet::API::Statuses::Status
Entory point for statuses/*.
Definition: status.h:13
oauth.h
CocoaTweet::API::Medias::Media
Entory point for statuses/*.
Definition: media.h:13
status.h