diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-04-13 11:24:24 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-04-13 11:24:24 -0400 |
| commit | 7e85b35d7d1714e3f85434b891a1050ad584e337 (patch) | |
| tree | 1ca626fe9551734d6d98e50b841b7365d49ba088 /src/codes.h | |
| parent | 891d57d200f55b91f80b6d3b4dd0c30479be6109 (diff) | |
| download | libtwittercpp-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/codes.h')
| -rw-r--r-- | src/codes.h | 31 |
1 files changed, 31 insertions, 0 deletions
| 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 @@ | |||
| 1 | #ifndef CODES_H_05838D39 | ||
| 2 | #define CODES_H_05838D39 | ||
| 3 | |||
| 4 | #include <ostream> | ||
| 5 | |||
| 6 | namespace twitter { | ||
| 7 | |||
| 8 | enum class response { | ||
| 9 | ok, | ||
| 10 | curl_error, | ||
| 11 | bad_auth, | ||
| 12 | limited, | ||
| 13 | server_error, | ||
| 14 | server_unavailable, | ||
| 15 | server_overloaded, | ||
| 16 | server_timeout, | ||
| 17 | suspended, | ||
| 18 | bad_token, | ||
| 19 | duplicate_status, | ||
| 20 | suspected_spam, | ||
| 21 | write_restricted, | ||
| 22 | bad_length, | ||
| 23 | unknown_error, | ||
| 24 | invalid_media | ||
| 25 | }; | ||
| 26 | |||
| 27 | }; | ||
| 28 | |||
| 29 | std::ostream& operator<<(std::ostream& os, twitter::response r); | ||
| 30 | |||
| 31 | #endif /* end of include guard: CODES_H_05838D39 */ | ||
