Commit Graph

334 Commits

Author SHA1 Message Date
tastytea d7043c06a6
Added Easy::PushSubscription 2018-05-23 20:21:41 +02:00
tastytea a0435e37d3
Added support for push subscriptions 2018-05-22 23:49:31 +02:00
tastytea d342edfd21
added http::callback_progress() to cancel transfers quicker and more reliably 2018-05-20 12:29:04 +02:00
tastytea e7d1808f85
Made deprecation warnings easier to understand 2018-05-17 18:22:38 +02:00
tastytea 273a92c4ab
Added mutex 2018-05-17 17:59:44 +02:00
tastytea 56cfe7e2ce
replaced http::abort_stream() with http::cancel_stream() 2018-05-13 16:00:27 +02:00
tastytea 87a432f326
bugfix: An exception was thrown when converting empty strings to uint64 2018-05-11 06:15:35 +02:00
tastytea 897e36dc44
made urlencode() static 2018-05-09 06:27:11 +02:00
tastytea a65bb8786a
Added @since-tags to the doxygen comments 2018-05-09 06:24:43 +02:00
tastytea 091a27e412
added unescape_html 2018-05-09 06:09:47 +02:00
tastytea 4ee52fc3a0
compacting strtime functions 2018-05-05 04:38:08 +02:00
tastytea 05fa4905e0
Added Easy::strtime_utc() and Easy::strtime_local() 2018-05-05 04:25:22 +02:00
tastytea a54b144e04
removed documentation for deprecated declarations, fixed version-typo 2018-04-19 01:07:56 +02:00
tastytea 098d7efadf
deleted useless switch 2018-04-19 00:42:40 +02:00
tastytea 77b9a66e9c
simplified calls, only 1 type of parameters 2018-04-19 00:20:43 +02:00
tastytea 42dcc47f5b
bugfix: Easy::Notification.status() was broken 2018-04-18 18:37:55 +02:00
tastytea f664ff2da8
corrected header path 2018-04-11 16:09:52 +02:00
tastytea 53c8bb7b4c
remoced errors 20-25 2018-04-10 10:47:54 +02:00
tastytea bbdcf70efd
Added support for passing exceptions 2018-04-10 10:17:46 +02:00
tastytea f91220c715
Found out about the mutable keyword! :-D 2018-04-10 09:40:26 +02:00
tastytea 2518f3d4a7
added Easy::Entity::was_set() 2018-04-09 23:20:37 +02:00
tastytea a7b714259b
Added errors: SSL, timeout 2018-04-09 17:55:11 +02:00
tastytea a6f0b20bc5
refactoring, documentation-enhancement 2018-04-04 04:38:04 +02:00
tastytea c944abccb5
Added example14 2018-04-04 04:17:22 +02:00
tastytea babab7c1b4
fixed Easy::Status::in_reply_to_*id() 2018-04-04 04:16:32 +02:00
tastytea 9f75b7d2b2
Added max_id() and since_id() to Easy::Link 2018-04-03 01:21:16 +02:00
tastytea 62826f60cf
Fixed bug: answer contained the headers on HTTP error 2018-04-03 00:52:06 +02:00
tastytea 87fded18db
Moved entites into src/easy/entities/ 2018-04-03 00:17:42 +02:00
tastytea fe7c20fe9e
Added Easy::get_link() 2018-04-03 00:04:47 +02:00
tastytea 69fd5138ee
added error 23 2018-04-02 02:29:39 +02:00
tastytea 844fb2c577
Replaced uint16_t with uint_fast16_t, refactoring 2018-04-02 01:47:44 +02:00
tastytea b918af5a19
Enhanced documentation 2018-04-02 00:49:28 +02:00
tastytea f298de7cff
Rewrote enums for consistency 2018-04-01 05:14:02 +02:00
tastytea 4f66554271
updated documentation 2018-04-01 04:27:29 +02:00
tastytea 88e2846e83
added example 13, fixed other examples 2018-04-01 04:17:03 +02:00
tastytea 445567744d
fixed headers, refactoring 2018-04-01 03:36:11 +02:00
tastytea 4baef545db
Added Easy::parse_stream() 2018-04-01 03:08:22 +02:00
tastytea 7f9e8aca0b
fixed missing default return value in Attachment::framerate() 2018-04-01 02:26:06 +02:00
tastytea 1b7753424b
documentation enhancement 2018-04-01 02:20:10 +02:00
tastytea 0c0495b5f1
added Instance::streaming_api() 2018-04-01 01:58:14 +02:00
tastytea 168f55a791
Added bitrate(), duration() and framerate() to Easy::Attachment 2018-04-01 01:50:26 +02:00
tastytea 67da294d1d
Added Easy::Entity::to_object() 2018-04-01 00:15:51 +02:00
tastytea 233646668e
fixed Easy::Status::id() 2018-04-01 00:14:55 +02:00
tastytea 3d2c636d54
Added Easy::Entity::from_string() and Easy::json_array_to_vector() 2018-03-31 20:03:31 +02:00
tastytea d37f1aefb7
Changed uint64_t to uint_fast64_t 2018-03-31 19:47:33 +02:00
tastytea f8530d09e8
Added type conversion for IDs (string->uint64) 2018-03-31 19:29:03 +02:00
tastytea c1174c0061
Entity: Added check for single-object arrays 2018-03-31 06:52:22 +02:00
tastytea 168a4926d1
Added Account::url() (forgot it before) 2018-03-31 05:02:03 +02:00
tastytea e4d2b1759e
Completed most of the incomplete Entitys (Attachment is still incomplete) 2018-03-31 04:39:11 +02:00
tastytea d78c699955
Added Easy::Status 2018-03-31 04:29:55 +02:00
tastytea 7e2c2b0359
Added Easy::Application and Easy::Tag 2018-03-31 04:07:21 +02:00
tastytea 06ab515f17
Add Easy::Report and Easy::Results (incomplete) 2018-03-31 03:28:18 +02:00
tastytea d4708e538f
Added Easy::Relationship 2018-03-31 02:54:15 +02:00
tastytea d6a208857f
removed duplicate includes and such 2018-03-31 00:12:34 +02:00
tastytea 2f7da8a99a
Addedd Easy::Notification (without status() for now) 2018-03-31 00:00:20 +02:00
tastytea fa03cb7ed2
Added Easy::Mention, small fixes 2018-03-30 23:51:09 +02:00
tastytea 4a1b454ba1
Removed unneccessary using-statements, fixed documentation 2018-03-30 20:31:30 +02:00
tastytea 6a8fb144ad
Added Entity::List 2018-03-30 20:30:29 +02:00
tastytea a89656caf1
Added Easy::Context 2018-03-30 20:22:45 +02:00
tastytea 69740568e0
Added constructors for empty Entities 2018-03-30 20:16:31 +02:00
tastytea 18aabc454f
Added Easy::Instance 2018-03-30 20:08:47 +02:00
tastytea 1a0a02d619
Added error() to all entities 2018-03-30 19:01:09 +02:00
tastytea 328e06c2b5
Added Easy::Emoji 2018-03-30 18:41:28 +02:00
tastytea 5c30e40259
Updated documentation 2018-03-26 19:23:36 +02:00
tastytea b6bb41e93a
refactored Easy::Entity and children 2018-03-26 19:23:36 +02:00
tastytea 6e9113292e
added Easy::Card 2018-03-26 19:23:36 +02:00
tastytea 4ce6a5e03a
fix documentation generation 2018-03-26 19:23:36 +02:00
tastytea bcc5c304e9
Split easy.hpp into several files 2018-03-26 19:23:36 +02:00
tastytea 0223b9e854
Added meta info to attachment class 2018-03-26 19:23:35 +02:00
tastytea 55ea84c27c
moved examples and tests to root directory 2018-03-26 19:23:35 +02:00
tastytea d2398008e8
added Attachment class 2018-03-26 19:23:35 +02:00
tastytea a1c1257c2d
fixed header searching 2018-03-26 19:23:35 +02:00
tastytea f7eafdaf95
Updated header location in examples, easy.hpp 2018-03-26 19:23:35 +02:00
tastytea dae9ac1fc2
added Easy::Account() 2018-03-26 19:23:34 +02:00
tastytea c27884e959
Added deprecation warnings 2018-03-26 19:17:28 +02:00
tastytea c01af9a197
Updated examples to work well with newer jsoncpp versions 2018-03-18 17:34:44 +01:00
tastytea ea3b596abb
fixed travis recipe, reordered source tree 2018-03-18 15:37:47 +01:00
tastytea 94b00bca99
Switched from Boost to JsonCpp for JSON parsing 2018-03-18 14:53:51 +01:00
tastytea cd87269b59
Don't send Connection: close for streaming requests 2018-03-15 12:45:49 +01:00
tastytea 87be978760
Fixed inconsistencies in get(), made documentation more clear (hopefully) 2018-03-13 15:07:14 +01:00
tastytea a9080f8cda
changed request_sync() to request() 2018-03-13 14:37:44 +01:00
tastytea 61878d6371
Added note that media attachements can not be base64-encoded 2018-03-13 14:16:45 +01:00
tastytea 0364a6ffae
Added media posting example 2018-03-13 13:25:01 +01:00
tastytea 311581345a
Bugfixes: answer was not deleted before filled again; Header/Body separation was broken 2018-03-13 13:22:17 +01:00
tastytea 78df8fb941
de-deprecated urlencode() 2018-03-11 15:50:46 +01:00
tastytea d3193c08a0
Header has to match completely in get_header() 2018-03-11 15:30:02 +01:00
tastytea 90c2941b5d
Bugfix: website in URL generated by register_app1() is now escaped. 2018-03-07 17:38:07 +01:00
tastytea 59da12f520
Added get_instance() 2018-03-07 10:27:27 +01:00
tastytea 4372f3249c
Added example for simplifying the interface, renamed examples 2018-03-05 12:15:41 +01:00
tastytea cd5294683d
Fixed documetation 2018-03-05 09:10:32 +01:00
tastytea a257818f31
docfix 2018-03-01 03:14:42 +01:00
tastytea a7c96cf30e
Incremented all error codes by 10 2018-02-28 22:42:26 +01:00
tastytea e6b5869ca8
fixed missing return statements 2018-02-28 08:00:34 +01:00
tastytea aa9b7b0db7
Re-added urlencode() for backwards-compatibility. Marked as deprecated. 2018-02-28 07:51:49 +01:00
tastytea db7bf85142
Changed register_app[12], deprecated old versions 2018-02-28 07:00:24 +01:00
tastytea e3b8f43f18
cosmetic change 2018-02-28 06:21:47 +01:00
tastytea 745debd580
Fixed bug that caused data corruption in the server responses 2018-02-27 05:23:06 +01:00
tastytea 06c9e2bce2
Fixed error where the return code was 200 for successfull queries 2018-02-27 04:34:09 +01:00
tastytea 9bc6e401aa
Added error code 12 2018-02-27 02:03:44 +01:00
tastytea 805384ca0b
Fixed bug where some error codes were not returned, added error code 11 2018-02-27 01:55:03 +01:00
tastytea 8c08af5302
Added short descriptions to examples 2018-02-26 09:07:40 +01:00
tastytea e73a5a765b
Added streaming support 2018-02-26 07:57:30 +01:00
tastytea f9b6009b57
Enable access to HTTP headers 2018-02-25 23:20:02 +01:00
tastytea 505849ee2b
Replaced own urlencode() with curlpp::escape() 2018-02-22 03:04:15 +01:00
tastytea 065b9bc6d8
Return new URL on HTTP 301 and 308 2018-02-17 20:05:24 +01:00
tastytea 23b09bbb50
Documentation update 2018-02-11 17:26:54 +01:00
tastytea 8222ff6da1
Documentation update, saving access_token 2018-02-11 12:26:42 +01:00
tastytea d11273ddc0
enhanced example7 2018-02-11 12:25:18 +01:00
tastytea 10808b8114
re-added HTTP status code checking 2018-02-10 12:01:55 +01:00
tastytea 01996113de
updated documentation 2018-02-09 22:40:46 +01:00
tastytea fec50bc146
app registering support 2018-02-09 22:21:01 +01:00
tastytea 071ebdc607
Binary data can be a filename now. 2018-02-09 20:14:50 +01:00
tastytea 1a3867ec1b
Updated documentation 2018-02-09 16:17:32 +01:00
tastytea ba84233569
Replaced boost::asio with curlpp 2018-02-09 16:01:24 +01:00
tastytea 0a81597e3d
started work on app registering 2018-02-05 14:56:16 +01:00
tastytea 26e06e42a1
typo in post(), doc updated 2018-01-26 00:24:34 +01:00
tastytea 13a5e23a8b
implemented PUT and DELETE, fixed argument encoding in POST 2018-01-24 19:41:07 +01:00
tastytea 73b48b5415
bugfix, /api/v1/statuses was in the wrong function, small documentation fixes 2018-01-22 04:45:12 +01:00
tastytea 83efdf7ce0
Fixed PATCH, implemented all POST requests 2018-01-22 02:25:09 +01:00
tastytea ac680f1ef5
Added PATC, doesn't work (needs research) 2018-01-21 23:54:42 +01:00
tastytea 1844f3571a
Added percent-encoding 2018-01-17 23:51:59 +01:00
tastytea 5bba324385
Breaking change: parameters is now a multimap, not a vector anymore 2018-01-15 20:23:21 +01:00
tastytea 80df5cafff
updated documentation 2018-01-15 15:34:18 +01:00
tastytea 013a67bbe0
Added examples 2018-01-15 00:08:14 +01:00
tastytea c43b3ce9e8
updated documentation, tweaked CMakeLists.txt, added Gentoo ebuild 2018-01-13 21:43:59 +01:00
tastytea 34f81d89d6
fixed CMakeLists 2018-01-13 19:11:09 +01:00
tastytea 79bd5740d9
Fixed documentation 2018-01-13 16:48:52 +01:00
tastytea 080cbad43f
fixed README; fixed debug output 2018-01-13 16:17:58 +01:00
tastytea eb3916c84e
error handling, debug output, documentation 2018-01-13 15:50:13 +01:00
tastytea 46c67052ab
Parameter support, added documentation. 2018-01-13 01:41:30 +01:00
tastytea 9c018df528
Implemented all GET calls (but without parameters). 2018-01-12 22:01:46 +01:00
tastytea c4a509c42e
semantic clarifications 2018-01-10 18:19:19 +01:00
tastytea be6fca69fe
The first GET requests are working. 2018-01-09 22:12:11 +01:00
tastytea cd9b3f28d5
initial commit 2018-01-09 12:36:05 +01:00