about summary refs log tree commit diff stats
path: root/src/twitter.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-04-13 11:24:24 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-04-13 11:24:24 -0400
commit7e85b35d7d1714e3f85434b891a1050ad584e337 (patch)
tree1ca626fe9551734d6d98e50b841b7365d49ba088 /src/twitter.h
parent891d57d200f55b91f80b6d3b4dd0c30479be6109 (diff)
downloadlibtwittercpp-7e85b35d7d1714e3f85434b891a1050ad584e337.tar.gz
libtwittercpp-7e85b35d7d1714e3f85434b891a1050ad584e337.tar.bz2
libtwittercpp-7e85b35d7d1714e3f85434b891a1050ad584e337.zip
Added ability to upload media and tweet it
Images (static and animated) and videos have been tested. Currently all media uploads occur in one large chunk; support to break down chunks will be added later.
Diffstat (limited to 'src/twitter.h')
-rw-r--r--src/twitter.h24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/twitter.h b/src/twitter.h index 39618c9..f9534c6 100644 --- a/src/twitter.h +++ b/src/twitter.h
@@ -3,32 +3,12 @@
3 3
4namespace twitter { 4namespace twitter {
5 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; 6 class tweet;
25 7
26}; 8};
27 9
28#include <json.hpp> 10#include "codes.h"
29 11#include "util.h"
30using nlohmann::json;
31
32#include "auth.h" 12#include "auth.h"
33#include "client.h" 13#include "client.h"
34#include "tweet.h" 14#include "tweet.h"