From 891d57d200f55b91f80b6d3b4dd0c30479be6109 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 12 Apr 2016 18:40:52 -0400 Subject: Added basic ability to tweet --- src/auth.cpp | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/auth.cpp (limited to 'src/auth.cpp') diff --git a/src/auth.cpp b/src/auth.cpp new file mode 100644 index 0000000..325c521 --- /dev/null +++ b/src/auth.cpp @@ -0,0 +1,45 @@ +#include "twitter.h" + +namespace twitter { + + void auth::setConsumerKey(std::string _arg) + { + _consumer_key = _arg; + } + + void auth::setConsumerSecret(std::string _arg) + { + _consumer_secret = _arg; + } + + void auth::setAccessKey(std::string _arg) + { + _access_key = _arg; + } + + void auth::setAccessSecret(std::string _arg) + { + _access_secret = _arg; + } + + std::string auth::getConsumerKey() const + { + return _consumer_key; + } + + std::string auth::getConsumerSecret() const + { + return _consumer_secret; + } + + std::string auth::getAccessKey() const + { + return _access_key; + } + + std::string auth::getAccessSecret() const + { + return _access_secret; + } + +}; -- cgit 1.4.1