diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-04-12 18:40:52 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-04-12 18:40:52 -0400 |
commit | 891d57d200f55b91f80b6d3b4dd0c30479be6109 (patch) | |
tree | e87d1566ff941aa5003e1f937ccbb497fe1606a2 /src/twitter.h | |
download | libtwittercpp-891d57d200f55b91f80b6d3b4dd0c30479be6109.tar.gz libtwittercpp-891d57d200f55b91f80b6d3b4dd0c30479be6109.tar.bz2 libtwittercpp-891d57d200f55b91f80b6d3b4dd0c30479be6109.zip |
Added basic ability to tweet
Diffstat (limited to 'src/twitter.h')
-rw-r--r-- | src/twitter.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/twitter.h b/src/twitter.h new file mode 100644 index 0000000..39618c9 --- /dev/null +++ b/src/twitter.h | |||
@@ -0,0 +1,36 @@ | |||
1 | #ifndef TWITTER_H_AC7A7666 | ||
2 | #define TWITTER_H_AC7A7666 | ||
3 | |||
4 | namespace twitter { | ||
5 | |||
6 | enum class response { | ||
7 | ok, | ||
8 | curl_error, | ||
9 | bad_auth, | ||
10 | limited, | ||
11 | server_error, | ||
12 | server_unavailable, | ||
13 | server_overloaded, | ||
14 | server_timeout, | ||
15 | suspended, | ||
16 | bad_token, | ||
17 | duplicate_status, | ||
18 | suspected_spam, | ||
19 | write_restricted, | ||
20 | bad_length, | ||
21 | unknown_error | ||
22 | }; | ||
23 | |||
24 | class tweet; | ||
25 | |||
26 | }; | ||
27 | |||
28 | #include <json.hpp> | ||
29 | |||
30 | using nlohmann::json; | ||
31 | |||
32 | #include "auth.h" | ||
33 | #include "client.h" | ||
34 | #include "tweet.h" | ||
35 | |||
36 | #endif /* end of include guard: TWITTER_H_AC7A7666 */ | ||