Commit Graph

334 Commits

Author SHA1 Message Date
tastytea ade55f8f19
Updated error descriptions. 2019-02-22 12:14:15 +01:00
tastytea e034dbc299
Replaced return codes in API::http. 2019-02-22 12:03:28 +01:00
tastytea c8baf41582
Renamed macros.hpp to debug.hpp. 2019-02-22 11:35:06 +01:00
tastytea 514ae8dc63
Added new return types, replaced return types for API::get(). 2019-02-22 11:33:36 +01:00
tastytea 318221a2e6
Changed uint_fast16_t to uint16_t and uint_fast64_t to uint64_t. 2019-02-22 08:29:54 +01:00
tastytea 24687cba07
Removed deprecated code. 2019-02-22 08:23:26 +01:00
tastytea 115726edf8
Escaped @ in doxygen documentation.
the build was successful Details
2019-02-19 04:41:24 +01:00
tastytea ffaf4a551a
Bugfix: Do not assume client_id, client_secret and token are hexadecimal.
the build was successful Details
2019-02-04 19:14:54 +01:00
tastytea 0cbfb415b5
Correted error in documentation. 2019-01-29 07:11:48 +01:00
tastytea b601369bfd
Forgot an int->string conversion. 2019-01-27 04:15:52 +01:00
tastytea 5a6b541de2
Changed ids from uint_fast64_t to const string in all relevant places. 2019-01-27 03:50:28 +01:00
tastytea 0b47e0ec8d
Changed ids from uint_fast64_t to const string in all Entities. 2019-01-27 03:44:08 +01:00
tastytea e2614c045e
Fixed documentation for get_notifications().
the build was successful Details
2019-01-26 07:08:20 +01:00
tastytea 462085470e
Added get_notifications().
the build was successful Details
Closes #3
2019-01-26 06:54:47 +01:00
tastytea ee82d35357
Removed const where it has no effect.
the build was successful Details
2018-12-04 11:26:28 +01:00
tastytea 8a0f709a6e
Added support vor bookmarks (Glitch-Soc)
the build was successful Details
2018-12-04 10:34:51 +01:00
tastytea 1f5e356b2a
Added Instance::max_toot_chars() 2018-12-04 09:44:32 +01:00
tastytea 22c217d3da
Added GET /api/v1/endorsements, POST /api/v1/accounts/:id/pin, POST /api/v1/accounts/:id/unpin 2018-11-17 20:54:23 +01:00
tastytea ad7ac09ae1
Added Relationship::endorsed() and Relationship::showing_notifications() 2018-11-17 20:47:38 +01:00
tastytea c492158f64
Enhanced description for language(const string &language) 2018-11-17 20:41:06 +01:00
tastytea 121cf0f32b
Added Status::card() 2018-11-17 20:38:09 +01:00
tastytea a8e27d7f5d
Added Status::replies_count() 2018-11-17 20:32:36 +01:00
tastytea d79fbc212b
Bugfix: Link error with inline function
the build was successful Details
2018-11-13 14:50:42 +01:00
tastytea 18935da2d1
Added ABI instability warning
the build was successful Details
2018-10-09 23:43:44 +02:00
tastytea e3c765ea5b
deleted useless debug statements 2018-10-08 01:45:46 +02:00
tastytea e372614068
Added error 16: Timeout 2018-10-08 01:33:09 +02:00
tastytea f1755d8de3
Bugfix: Error codes from send_post and send_toot were not reported back.
Because the variable was not a reference.
2018-10-08 01:22:55 +02:00
tastytea f64984f331
Updated Easy::Account for Mastodon 2.4.0+ 2018-09-16 02:45:24 +02:00
tastytea b74381ceed
Enhanced Entity::valid
the build was successful Details
It now checks if all non-nullable attributes are set. fixes #10
2018-07-14 11:54:13 +02:00
tastytea 2565ff8d15
Renamed send_toot to send_post, made send_toot an alias for send_post 2018-07-14 10:36:34 +02:00
tastytea 5df220913b
Added API::urldecode()
the build was successful Details
2018-06-28 14:19:43 +02:00
tastytea f9c32f38d3
Removed redundant debug messages
the build was successful Details
2018-06-21 12:42:38 +02:00
tastytea 7bd17a0ef0
Added a lot more version tags to the documentation
the build was successful Details
That was tedious! 😓
2018-06-14 11:17:26 +02:00
tastytea 43504f6ef7
Added Easy::send_toot (Closes #1)
the build failed Details
2018-06-14 04:11:28 +02:00
tastytea eaff505f15
bugfix: Made sure that arrays are send as arrays when they only have 1 entry
This applies to account_ids, exclude_types, and media_ids
2018-06-14 04:10:08 +02:00
tastytea 8f30451ec1
Made Easy::Attachment writable (#1)
the build was successful Details
2018-06-14 03:19:23 +02:00
tastytea 929e815c73
added @since-tags 2018-06-14 01:52:05 +02:00
tastytea a56f6f0340
Made Easy::Status writable (#1)
the build was successful Details
2018-06-13 23:55:19 +02:00
tastytea de8665481e
removed unnecessary 2018-06-12 03:06:02 +02:00
tastytea b3dfec4204
Added Easy::Account::fields()
Returns the metadata fields introduced in Mastodon 2.4.0.
2018-06-12 03:05:12 +02:00
tastytea 14e164d7b4
old hashtags are now suffixed with _v1, new hashtags with _v2. hashtags() is an alias for _v1. 2018-06-11 01:54:15 +02:00
tastytea 8be8d24f6c
Added support for bot tag in Easy::Account 2018-06-11 01:44:41 +02:00
tastytea 3423e7f672
Added Easy::Tag::History 2018-06-11 01:41:30 +02:00
tastytea 55837e78d2
Added /api/v2/search, copied Easy::Result::hashtag to hashtag_v1, changed Easy::Result::hashtag to return Easy::Tag objects 2018-06-11 01:38:36 +02:00
tastytea 620b68d9b4
Removed mentions of deprecated error codes 2018-06-08 00:28:57 +02:00
tastytea 5baa7d3f1e
added proxy example to example list 2018-05-27 00:11:41 +02:00
tastytea b9603587c5
Added proxy to get_stream() 2018-05-26 23:48:03 +02:00
tastytea f019809133
enhanced proxy documentation 2018-05-26 23:02:22 +02:00
tastytea 86a614dd61
Added proxy support 2018-05-26 22:34:31 +02:00
tastytea e01ce6b96f
Added since-tag 2018-05-25 14:21:35 +02:00
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