From 7e85b35d7d1714e3f85434b891a1050ad584e337 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 13 Apr 2016 11:24:24 -0400 Subject: 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. --- src/codes.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/codes.h (limited to 'src/codes.h') diff --git a/src/codes.h b/src/codes.h new file mode 100644 index 0000000..334f0ce --- /dev/null +++ b/src/codes.h @@ -0,0 +1,31 @@ +#ifndef CODES_H_05838D39 +#define CODES_H_05838D39 + +#include + +namespace twitter { + + enum class response { + ok, + curl_error, + bad_auth, + limited, + server_error, + server_unavailable, + server_overloaded, + server_timeout, + suspended, + bad_token, + duplicate_status, + suspected_spam, + write_restricted, + bad_length, + unknown_error, + invalid_media + }; + +}; + +std::ostream& operator<<(std::ostream& os, twitter::response r); + +#endif /* end of include guard: CODES_H_05838D39 */ -- cgit 1.4.1