Commit Graph

295 Commits

Author SHA1 Message Date
3fe21ccfc7
Small documetation fixes.
All checks were successful
the build was successful
2019-04-13 02:54:46 +02:00
4302814e17
Replaced Easy::alertmap with Easy::alerts. 2019-04-13 02:45:27 +02:00
bc82dac69b
Marked Easy::time operators const. 2019-04-13 02:27:45 +02:00
a3f2e94034
Bettered documentation. 2019-04-13 02:27:21 +02:00
a0d47d48fa
Replaced parametermap with own types.
All checks were successful
the build was successful
2019-04-12 01:10:33 +02:00
c2eff2b09e
Print remaining content of the stream in debug mode.
All checks were successful
the build was successful
2019-04-10 21:12:13 +02:00
031c0c3e22
Catch path by value in request_stream().
All checks were successful
the build was successful
2019-04-10 21:04:04 +02:00
09ecd8e5e4
Report errors with get_stream() in-stream.
All checks were successful
the build was successful
2019-04-10 20:52:36 +02:00
a551516be2
Added short descriptions to the examples.
All checks were successful
the build was successful
Also added example02 to doxygen-documentation.
2019-04-10 02:35:38 +02:00
bde8d11706
Revamped streams. 2019-04-10 02:25:55 +02:00
ccedfba4af
Added GET_STREAM to switch in http::request(). 2019-04-09 21:58:02 +02:00
c9a826ebcb
Improved documentation a bit.
All checks were successful
the build was successful
2019-04-05 14:41:18 +02:00
6a01efc6aa
Moved API::http::method to http_method. 2019-04-05 14:40:54 +02:00
88d69be298
Let Account::Source fall back to Easy::Entity. 2019-04-05 14:39:35 +02:00
a63f63bd4f
Fixed include guard. 2019-04-02 11:20:35 +02:00
b49e8600ac
Moved types to types.hpp and reformatted mastodon-cpp.hpp.
Also renamed easy/types.hpp to easy/types_easy.hpp.
2019-04-02 11:16:52 +02:00
38e8809b92
Moved return_base and return_call to their own header. 2019-04-02 10:37:27 +02:00
c35b7f56fa
Moved easy types to easy/types.hpp.
All checks were successful
the build was successful
2019-03-31 22:24:14 +02:00
86dccaf2d7
Removed inclusion of easy.hpp from entities.
Also added override to valid().
2019-03-31 21:43:57 +02:00
6f11116b1c
strtime: Explicitly cast char array to const string.
All checks were successful
the build was successful
2019-03-31 00:08:11 +01:00
6690d2bd0b
Changed for-loop to std::transform. 2019-03-31 00:02:02 +01:00
94651f8dba
Changed for-loop to std::transform. 2019-03-30 23:59:27 +01:00
07c39ab4bf
Changed for-loop to std::transform. 2019-03-30 23:57:25 +01:00
3328821bca
Changed for-loop to std::transform. 2019-03-30 23:55:40 +01:00
c7f7123ba6
Fixed some capture clauses. 2019-03-30 23:49:08 +01:00
f5b05893cd
Changed for-loop to std::transform. 2019-03-30 23:42:06 +01:00
d84a18a0e7
Changed for-loop to std::transform. 2019-03-30 23:15:22 +01:00
7ac5b2545a
Cleaned up whitespace. 2019-03-30 23:10:30 +01:00
ff0bd7b906
Replaced for-loop with std::transform.
All checks were successful
the build was successful
2019-03-30 22:24:15 +01:00
57ec1fd23a
Cleaned up whitespace. 2019-03-30 22:14:58 +01:00
43fd2aae6e
Changed debug.hpp to respect 80 char rule. 2019-03-30 20:53:53 +01:00
baf417ce69
Added documentation to return_entity{,_vector}.
All checks were successful
the build was successful
2019-03-30 13:18:42 +01:00
c854230f95
Added documentation for return_base and return_call. 2019-03-30 13:06:57 +01:00
da1ee09640
Added explicit instantiations for return_entity{,_vector}. 2019-03-30 12:12:59 +01:00
54a1fb0d3e
Added Easy::time as time type.
All checks were successful
the build was successful
2019-03-29 14:44:39 +01:00
dff3b11c00
Cleaned up, fixed formatting and so on.
All checks were successful
the build was successful
2019-03-28 21:23:24 +01:00
76dc6a623c
Put Easy return types in own header. 2019-03-28 15:35:23 +01:00
ce5f9510a6
Put Entity in own header. 2019-03-28 15:35:00 +01:00
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
354f7e1b90
Removed unnecessary type qualifiers. 2019-03-28 13:45:30 +01:00
12d986ed06
Templated return_entity and return_entity_vector.
Some checks failed
the build failed
2019-03-28 13:33:28 +01:00
0b35fa0828
Uodated copyright years. 2019-03-20 06:15:43 +01:00
c4fae35100
Reformatted for 80 char rule.
All checks were successful
the build was successful
2019-03-14 18:34:34 +01:00
c43436d970
misc
All checks were successful
the build was successful
2019-03-11 21:13:58 +01:00
d85190b113
Use std::transform instead of for loop in json_array_to_vector. 2019-03-11 21:13:34 +01:00
e07dc45184
Inherit constructors from Entity. 2019-03-11 20:48:54 +01:00
1f36568b20
Added contructor with Json::Value and operator Json::Value() to Entity 2019-03-11 20:41:52 +01:00
f227b25e85
Revert "Added const to overloaded operators."
All checks were successful
the build was successful
This reverts commit 2103eb4ac2.
2019-03-03 12:24:09 +01:00
2103eb4ac2
Added const to overloaded operators.
Some checks failed
the build failed
2019-03-03 12:14:11 +01:00
f28fac5579
Fixed << overloading. 2019-03-03 11:16:23 +01:00
d31c83f1d9
Did API inventory.
All checks were successful
the build was successful
Added missing calls to readme, reordered calls, marked deprecated
calls.
2019-03-03 10:41:10 +01:00
5fa7887fb1
Added operator overloads to return_entity and return_entity_vector 2019-03-02 20:21:31 +01:00
e1b32d13c8
Added example.
All checks were successful
the build was successful
2019-03-02 13:52:35 +01:00
ebd40ba4d5
Changed default values for strings from 0 to "". 2019-03-02 12:47:15 +01:00
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