Diffstat (limited to 'include/opkele/oauth/consumer.h') (more/less context) (show whitespace changes)
-rw-r--r-- | include/opkele/oauth/consumer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/opkele/oauth/consumer.h b/include/opkele/oauth/consumer.h index 1e2784c..9196297 100644 --- a/include/opkele/oauth/consumer.h +++ b/include/opkele/oauth/consumer.h | |||
@@ -1,12 +1,13 @@ | |||
1 | #ifndef __OPKELE_OAUTH_CONSUMER_H | 1 | #ifndef __OPKELE_OAUTH_CONSUMER_H |
2 | #define __OPKELE_OAUTH_CONSUMER_H | 2 | #define __OPKELE_OAUTH_CONSUMER_H |
3 | 3 | ||
4 | #include <string> | 4 | #include <string> |
5 | #include <opkele/types.h> | 5 | #include <opkele/types.h> |
6 | #include <opkele/oauth.h> | 6 | #include <opkele/oauth.h> |
7 | #include <opkele/curl.h> | ||
7 | 8 | ||
8 | namespace opkele { | 9 | namespace opkele { |
9 | namespace oauth { | 10 | namespace oauth { |
10 | using std::string; | 11 | using std::string; |
11 | 12 | ||
12 | enum oauth_method_t { | 13 | enum oauth_method_t { |
@@ -38,14 +39,18 @@ namespace opkele { | |||
38 | struct http_request_t { | 39 | struct http_request_t { |
39 | string authorize_header; | 40 | string authorize_header; |
40 | string method; | 41 | string method; |
41 | string url; | 42 | string url; |
42 | string body; | 43 | string body; |
43 | 44 | ||
45 | util::curl_slist_t _curl_headers_list; | ||
46 | |||
44 | http_request_t(const string& m,const string& u) | 47 | http_request_t(const string& m,const string& u) |
45 | : method(m), url(u) { } | 48 | : method(m), url(u) { } |
49 | |||
50 | void setup_curl(CURL *curl); | ||
46 | }; | 51 | }; |
47 | 52 | ||
48 | class basic_consumer { | 53 | class basic_consumer { |
49 | public: | 54 | public: |
50 | token_t consumer_token; | 55 | token_t consumer_token; |
51 | 56 | ||