Commit Graph

268 Commits

Author SHA1 Message Date
tastytea 7ac5b2545a
Cleaned up whitespace. 2019-03-30 23:10:30 +01:00
tastytea ff0bd7b906
Replaced for-loop with std::transform.
the build was successful Details
2019-03-30 22:24:15 +01:00
tastytea 57ec1fd23a
Cleaned up whitespace. 2019-03-30 22:14:58 +01:00
tastytea 43fd2aae6e
Changed debug.hpp to respect 80 char rule. 2019-03-30 20:53:53 +01:00
tastytea baf417ce69
Added documentation to return_entity{,_vector}.
the build was successful Details
2019-03-30 13:18:42 +01:00
tastytea c854230f95
Added documentation for return_base and return_call. 2019-03-30 13:06:57 +01:00
tastytea da1ee09640
Added explicit instantiations for return_entity{,_vector}. 2019-03-30 12:12:59 +01:00
tastytea 54a1fb0d3e
Added Easy::time as time type.
the build was successful Details
2019-03-29 14:44:39 +01:00
tastytea dff3b11c00
Cleaned up, fixed formatting and so on.
the build was successful Details
2019-03-28 21:23:24 +01:00
tastytea 76dc6a623c
Put Easy return types in own header. 2019-03-28 15:35:23 +01:00
tastytea ce5f9510a6
Put Entity in own header. 2019-03-28 15:35:00 +01:00
tastytea 4aad1425eb
Turned Easy into namespace, renamed class Easy::API.
Don't look, I'm not done yet! :-)
2019-03-28 15:30:56 +01:00
tastytea 354f7e1b90
Removed unnecessary type qualifiers. 2019-03-28 13:45:30 +01:00
tastytea 12d986ed06
Templated return_entity and return_entity_vector.
the build failed Details
2019-03-28 13:33:28 +01:00
tastytea 0b35fa0828
Uodated copyright years. 2019-03-20 06:15:43 +01:00
tastytea c4fae35100
Reformatted for 80 char rule.
the build was successful Details
2019-03-14 18:34:34 +01:00
tastytea c43436d970
misc
the build was successful Details
2019-03-11 21:13:58 +01:00
tastytea d85190b113
Use std::transform instead of for loop in json_array_to_vector. 2019-03-11 21:13:34 +01:00
tastytea e07dc45184
Inherit constructors from Entity. 2019-03-11 20:48:54 +01:00
tastytea 1f36568b20
Added contructor with Json::Value and operator Json::Value() to Entity 2019-03-11 20:41:52 +01:00
tastytea f227b25e85
Revert "Added const to overloaded operators."
the build was successful Details
This reverts commit 2103eb4ac2.
2019-03-03 12:24:09 +01:00
tastytea 2103eb4ac2
Added const to overloaded operators.
the build failed Details
2019-03-03 12:14:11 +01:00
tastytea f28fac5579
Fixed << overloading. 2019-03-03 11:16:23 +01:00
tastytea d31c83f1d9
Did API inventory.
the build was successful Details
Added missing calls to readme, reordered calls, marked deprecated
calls.
2019-03-03 10:41:10 +01:00
tastytea 5fa7887fb1
Added operator overloads to return_entity and return_entity_vector 2019-03-02 20:21:31 +01:00
tastytea e1b32d13c8
Added example.
the build was successful Details
2019-03-02 13:52:35 +01:00
tastytea ebd40ba4d5
Changed default values for strings from 0 to "". 2019-03-02 12:47:15 +01:00
tastytea 4d3ffb5516
Typo 2019-03-02 12:21:40 +01:00
tastytea 9f21c5811a
Changed error codes for curlpp errors. 2019-03-02 11:53:02 +01:00
tastytea 4fb13d1876
Removed constexpr for g++-5.
the build was successful Details
2019-02-25 14:55:01 +01:00
tastytea 25628e1d5d
Added virtual destructors to API and Easy::Entity.
the build failed Details
2019-02-25 14:36:49 +01:00
tastytea 7bdeaeb236
Changed return types for simple calls.
the build failed Details
Also added return_entity, return_entity_vector and GenericEntity().
2019-02-25 13:55:24 +01:00
tastytea ada8f45415
Changed return tyoe for register_app[12]. 2019-02-25 12:32:19 +01:00
tastytea cbb1e18b0c
Replaced return types for get_stream, patch, post, put, del
the build failed Details
2019-02-22 12:36:03 +01:00
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