Commit Graph

291 Commits

Author SHA1 Message Date
4d3ffb5516
Typo 2019-03-02 12:21:40 +01:00
9f21c5811a
Changed error codes for curlpp errors. 2019-03-02 11:53:02 +01:00
4fb13d1876
Removed constexpr for g++-5.
All checks were successful
the build was successful
2019-02-25 14:55:01 +01:00
25628e1d5d
Added virtual destructors to API and Easy::Entity.
Some checks failed
the build failed
2019-02-25 14:36:49 +01:00
7bdeaeb236
Changed return types for simple calls.
Some checks failed
the build failed
Also added return_entity, return_entity_vector and GenericEntity().
2019-02-25 13:55:24 +01:00
ada8f45415
Changed return tyoe for register_app[12]. 2019-02-25 12:32:19 +01:00
cbb1e18b0c
Replaced return types for get_stream, patch, post, put, del
Some checks failed
the build failed
2019-02-22 12:36:03 +01:00
ade55f8f19
Updated error descriptions. 2019-02-22 12:14:15 +01:00
e034dbc299
Replaced return codes in API::http. 2019-02-22 12:03:28 +01:00
c8baf41582
Renamed macros.hpp to debug.hpp. 2019-02-22 11:35:06 +01:00
514ae8dc63
Added new return types, replaced return types for API::get(). 2019-02-22 11:33:36 +01:00
318221a2e6
Changed uint_fast16_t to uint16_t and uint_fast64_t to uint64_t. 2019-02-22 08:29:54 +01:00
24687cba07
Removed deprecated code. 2019-02-22 08:23:26 +01:00
115726edf8
Escaped @ in doxygen documentation.
All checks were successful
the build was successful
2019-02-19 04:41:24 +01:00
ffaf4a551a
Bugfix: Do not assume client_id, client_secret and token are hexadecimal.
All checks were successful
the build was successful
2019-02-04 19:14:54 +01:00
0cbfb415b5
Correted error in documentation. 2019-01-29 07:11:48 +01:00
b601369bfd
Forgot an int->string conversion. 2019-01-27 04:15:52 +01:00
5a6b541de2
Changed ids from uint_fast64_t to const string in all relevant places. 2019-01-27 03:50:28 +01:00
0b47e0ec8d
Changed ids from uint_fast64_t to const string in all Entities. 2019-01-27 03:44:08 +01:00
e2614c045e
Fixed documentation for get_notifications().
All checks were successful
the build was successful
2019-01-26 07:08:20 +01:00
462085470e
Added get_notifications().
All checks were successful
the build was successful
Closes #3
2019-01-26 06:54:47 +01:00
ee82d35357
Removed const where it has no effect.
All checks were successful
the build was successful
2018-12-04 11:26:28 +01:00
8a0f709a6e
Added support vor bookmarks (Glitch-Soc)
All checks were successful
the build was successful
2018-12-04 10:34:51 +01:00
1f5e356b2a
Added Instance::max_toot_chars() 2018-12-04 09:44:32 +01:00
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
ad7ac09ae1
Added Relationship::endorsed() and Relationship::showing_notifications() 2018-11-17 20:47:38 +01:00
c492158f64
Enhanced description for language(const string &language) 2018-11-17 20:41:06 +01:00
121cf0f32b
Added Status::card() 2018-11-17 20:38:09 +01:00
a8e27d7f5d
Added Status::replies_count() 2018-11-17 20:32:36 +01:00
d79fbc212b
Bugfix: Link error with inline function
All checks were successful
the build was successful
2018-11-13 14:50:42 +01:00
18935da2d1
Added ABI instability warning
All checks were successful
the build was successful
2018-10-09 23:43:44 +02:00
e3c765ea5b
deleted useless debug statements 2018-10-08 01:45:46 +02:00
e372614068
Added error 16: Timeout 2018-10-08 01:33:09 +02:00
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
f64984f331
Updated Easy::Account for Mastodon 2.4.0+ 2018-09-16 02:45:24 +02:00
b74381ceed
Enhanced Entity::valid
All checks were successful
the build was successful
It now checks if all non-nullable attributes are set. fixes #10
2018-07-14 11:54:13 +02:00
2565ff8d15
Renamed send_toot to send_post, made send_toot an alias for send_post 2018-07-14 10:36:34 +02:00
5df220913b
Added API::urldecode()
All checks were successful
the build was successful
2018-06-28 14:19:43 +02:00
f9c32f38d3
Removed redundant debug messages
All checks were successful
the build was successful
2018-06-21 12:42:38 +02:00
7bd17a0ef0
Added a lot more version tags to the documentation
All checks were successful
the build was successful
That was tedious! 😓
2018-06-14 11:17:26 +02:00
43504f6ef7
Added Easy::send_toot (Closes #1)
Some checks failed
the build failed
2018-06-14 04:11:28 +02:00
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
8f30451ec1
Made Easy::Attachment writable (#1)
All checks were successful
the build was successful
2018-06-14 03:19:23 +02:00
929e815c73
added @since-tags 2018-06-14 01:52:05 +02:00
a56f6f0340
Made Easy::Status writable (#1)
All checks were successful
the build was successful
2018-06-13 23:55:19 +02:00
de8665481e
removed unnecessary 2018-06-12 03:06:02 +02:00
b3dfec4204
Added Easy::Account::fields()
Returns the metadata fields introduced in Mastodon 2.4.0.
2018-06-12 03:05:12 +02:00
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
8be8d24f6c
Added support for bot tag in Easy::Account 2018-06-11 01:44:41 +02:00
3423e7f672
Added Easy::Tag::History 2018-06-11 01:41:30 +02:00
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
620b68d9b4
Removed mentions of deprecated error codes 2018-06-08 00:28:57 +02:00
5baa7d3f1e
added proxy example to example list 2018-05-27 00:11:41 +02:00
b9603587c5
Added proxy to get_stream() 2018-05-26 23:48:03 +02:00
f019809133
enhanced proxy documentation 2018-05-26 23:02:22 +02:00
86a614dd61
Added proxy support 2018-05-26 22:34:31 +02:00
e01ce6b96f
Added since-tag 2018-05-25 14:21:35 +02:00
d7043c06a6
Added Easy::PushSubscription 2018-05-23 20:21:41 +02:00
a0435e37d3
Added support for push subscriptions 2018-05-22 23:49:31 +02:00
d342edfd21
added http::callback_progress() to cancel transfers quicker and more reliably 2018-05-20 12:29:04 +02:00
e7d1808f85
Made deprecation warnings easier to understand 2018-05-17 18:22:38 +02:00
273a92c4ab
Added mutex 2018-05-17 17:59:44 +02:00
56cfe7e2ce
replaced http::abort_stream() with http::cancel_stream() 2018-05-13 16:00:27 +02:00
87a432f326
bugfix: An exception was thrown when converting empty strings to uint64 2018-05-11 06:15:35 +02:00
897e36dc44
made urlencode() static 2018-05-09 06:27:11 +02:00
a65bb8786a
Added @since-tags to the doxygen comments 2018-05-09 06:24:43 +02:00
091a27e412
added unescape_html 2018-05-09 06:09:47 +02:00
4ee52fc3a0
compacting strtime functions 2018-05-05 04:38:08 +02:00
05fa4905e0
Added Easy::strtime_utc() and Easy::strtime_local() 2018-05-05 04:25:22 +02:00
a54b144e04
removed documentation for deprecated declarations, fixed version-typo 2018-04-19 01:07:56 +02:00
098d7efadf
deleted useless switch 2018-04-19 00:42:40 +02:00
77b9a66e9c
simplified calls, only 1 type of parameters 2018-04-19 00:20:43 +02:00
42dcc47f5b
bugfix: Easy::Notification.status() was broken 2018-04-18 18:37:55 +02:00
f664ff2da8
corrected header path 2018-04-11 16:09:52 +02:00
53c8bb7b4c
remoced errors 20-25 2018-04-10 10:47:54 +02:00
bbdcf70efd
Added support for passing exceptions 2018-04-10 10:17:46 +02:00
f91220c715
Found out about the mutable keyword! :-D 2018-04-10 09:40:26 +02:00
2518f3d4a7
added Easy::Entity::was_set() 2018-04-09 23:20:37 +02:00
a7b714259b
Added errors: SSL, timeout 2018-04-09 17:55:11 +02:00
a6f0b20bc5
refactoring, documentation-enhancement 2018-04-04 04:38:04 +02:00
c944abccb5
Added example14 2018-04-04 04:17:22 +02:00
babab7c1b4
fixed Easy::Status::in_reply_to_*id() 2018-04-04 04:16:32 +02:00
9f75b7d2b2
Added max_id() and since_id() to Easy::Link 2018-04-03 01:21:16 +02:00
62826f60cf
Fixed bug: answer contained the headers on HTTP error 2018-04-03 00:52:06 +02:00
87fded18db
Moved entites into src/easy/entities/ 2018-04-03 00:17:42 +02:00
fe7c20fe9e
Added Easy::get_link() 2018-04-03 00:04:47 +02:00
69fd5138ee
added error 23 2018-04-02 02:29:39 +02:00
844fb2c577
Replaced uint16_t with uint_fast16_t, refactoring 2018-04-02 01:47:44 +02:00
b918af5a19
Enhanced documentation 2018-04-02 00:49:28 +02:00
f298de7cff
Rewrote enums for consistency 2018-04-01 05:14:02 +02:00
4f66554271
updated documentation 2018-04-01 04:27:29 +02:00
88e2846e83
added example 13, fixed other examples 2018-04-01 04:17:03 +02:00
445567744d
fixed headers, refactoring 2018-04-01 03:36:11 +02:00
4baef545db
Added Easy::parse_stream() 2018-04-01 03:08:22 +02:00
7f9e8aca0b
fixed missing default return value in Attachment::framerate() 2018-04-01 02:26:06 +02:00
1b7753424b
documentation enhancement 2018-04-01 02:20:10 +02:00
0c0495b5f1
added Instance::streaming_api() 2018-04-01 01:58:14 +02:00
168f55a791
Added bitrate(), duration() and framerate() to Easy::Attachment 2018-04-01 01:50:26 +02:00
67da294d1d
Added Easy::Entity::to_object() 2018-04-01 00:15:51 +02:00
233646668e
fixed Easy::Status::id() 2018-04-01 00:14:55 +02:00
3d2c636d54
Added Easy::Entity::from_string() and Easy::json_array_to_vector() 2018-03-31 20:03:31 +02:00
d37f1aefb7
Changed uint64_t to uint_fast64_t 2018-03-31 19:47:33 +02:00
f8530d09e8
Added type conversion for IDs (string->uint64) 2018-03-31 19:29:03 +02:00
c1174c0061
Entity: Added check for single-object arrays 2018-03-31 06:52:22 +02:00
168a4926d1
Added Account::url() (forgot it before) 2018-03-31 05:02:03 +02:00
e4d2b1759e
Completed most of the incomplete Entitys (Attachment is still incomplete) 2018-03-31 04:39:11 +02:00
d78c699955
Added Easy::Status 2018-03-31 04:29:55 +02:00
7e2c2b0359
Added Easy::Application and Easy::Tag 2018-03-31 04:07:21 +02:00
06ab515f17
Add Easy::Report and Easy::Results (incomplete) 2018-03-31 03:28:18 +02:00
d4708e538f
Added Easy::Relationship 2018-03-31 02:54:15 +02:00
d6a208857f
removed duplicate includes and such 2018-03-31 00:12:34 +02:00
2f7da8a99a
Addedd Easy::Notification (without status() for now) 2018-03-31 00:00:20 +02:00
fa03cb7ed2
Added Easy::Mention, small fixes 2018-03-30 23:51:09 +02:00
4a1b454ba1
Removed unneccessary using-statements, fixed documentation 2018-03-30 20:31:30 +02:00
6a8fb144ad
Added Entity::List 2018-03-30 20:30:29 +02:00
a89656caf1
Added Easy::Context 2018-03-30 20:22:45 +02:00
69740568e0
Added constructors for empty Entities 2018-03-30 20:16:31 +02:00
18aabc454f
Added Easy::Instance 2018-03-30 20:08:47 +02:00
1a0a02d619
Added error() to all entities 2018-03-30 19:01:09 +02:00
328e06c2b5
Added Easy::Emoji 2018-03-30 18:41:28 +02:00
5c30e40259
Updated documentation 2018-03-26 19:23:36 +02:00
b6bb41e93a
refactored Easy::Entity and children 2018-03-26 19:23:36 +02:00
6e9113292e
added Easy::Card 2018-03-26 19:23:36 +02:00
4ce6a5e03a
fix documentation generation 2018-03-26 19:23:36 +02:00
bcc5c304e9
Split easy.hpp into several files 2018-03-26 19:23:36 +02:00
0223b9e854
Added meta info to attachment class 2018-03-26 19:23:35 +02:00
55ea84c27c
moved examples and tests to root directory 2018-03-26 19:23:35 +02:00
d2398008e8
added Attachment class 2018-03-26 19:23:35 +02:00
a1c1257c2d
fixed header searching 2018-03-26 19:23:35 +02:00
f7eafdaf95
Updated header location in examples, easy.hpp 2018-03-26 19:23:35 +02:00
dae9ac1fc2
added Easy::Account() 2018-03-26 19:23:34 +02:00
c27884e959
Added deprecation warnings 2018-03-26 19:17:28 +02:00
c01af9a197
Updated examples to work well with newer jsoncpp versions 2018-03-18 17:34:44 +01:00
ea3b596abb
fixed travis recipe, reordered source tree 2018-03-18 15:37:47 +01:00
94b00bca99
Switched from Boost to JsonCpp for JSON parsing 2018-03-18 14:53:51 +01:00
cd87269b59
Don't send Connection: close for streaming requests 2018-03-15 12:45:49 +01:00
87be978760
Fixed inconsistencies in get(), made documentation more clear (hopefully) 2018-03-13 15:07:14 +01:00
a9080f8cda
changed request_sync() to request() 2018-03-13 14:37:44 +01:00
61878d6371
Added note that media attachements can not be base64-encoded 2018-03-13 14:16:45 +01:00
0364a6ffae
Added media posting example 2018-03-13 13:25:01 +01:00
311581345a
Bugfixes: answer was not deleted before filled again; Header/Body separation was broken 2018-03-13 13:22:17 +01:00
78df8fb941
de-deprecated urlencode() 2018-03-11 15:50:46 +01:00
d3193c08a0
Header has to match completely in get_header() 2018-03-11 15:30:02 +01:00
90c2941b5d
Bugfix: website in URL generated by register_app1() is now escaped. 2018-03-07 17:38:07 +01:00
59da12f520
Added get_instance() 2018-03-07 10:27:27 +01:00
4372f3249c
Added example for simplifying the interface, renamed examples 2018-03-05 12:15:41 +01:00
cd5294683d
Fixed documetation 2018-03-05 09:10:32 +01:00
a257818f31
docfix 2018-03-01 03:14:42 +01:00
a7c96cf30e
Incremented all error codes by 10 2018-02-28 22:42:26 +01:00
e6b5869ca8
fixed missing return statements 2018-02-28 08:00:34 +01:00