blob: 30c178c3910647ec8803357a8a70f88286d6a640 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef AUTH_H_48EF85FD
#define AUTH_H_48EF85FD
#include <string>
#include "../vendor/liboauthcpp/include/liboauthcpp/liboauthcpp.h"
namespace twitter {
class auth {
public:
auth(
std::string consumerKey,
std::string consumerSecret,
std::string accessKey,
std::string accessSecret) :
consumer_(std::move(consumerKey), std::move(consumerSecret)),
token_(std::move(accessKey), std::move(accessSecret)),
client_(&consumer_, &token_)
{
}
const OAuth::Client& getClient() const
{
return client_;
}
private:
OAuth::Consumer consumer_;
OAuth::Token token_;
OAuth::Client client_;
};
};
#endif /* end of include guard: AUTH_H_48EF85FD */
|