Commit Graph

132 Commits

Author SHA1 Message Date
d14f750c39
Add example for posting an attachment. 2020-01-11 15:25:20 +01:00
45e22b5d1e
Improve parametermap example. 2020-01-11 14:38:03 +01:00
8d04f7e9ea
Add support for sending files in HTTP forms. 2020-01-11 14:36:49 +01:00
f0a35bfd5b
Add add_mime_part().
Makes code more readable and decreases duplication.
2020-01-11 13:17:35 +01:00
caf94e6c17
Add example03 to reference.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-10 19:40:16 +01:00
fbcded6e1e
Simplified buffer_mutex documentation. 2020-01-10 19:03:58 +01:00
7ac1bc1377
Hide CURLWrapper::cancel_stream(). 2020-01-10 18:57:42 +01:00
f7191d1f3b
Add support for setting the access token. 2020-01-10 14:27:00 +01:00
c3bb9a20c4
Send the access token. 2020-01-10 14:26:50 +01:00
a6139b4390
Implement HTTP POST in Connection. 2020-01-10 13:08:55 +01:00
f222215116
Implement HTTP POST in CURLWrapper. 2020-01-10 13:08:34 +01:00
529e4bca6d
Add parameterpair. 2020-01-10 12:22:14 +01:00
1263b03999
Add a message only constructor to CURLException. 2020-01-10 12:22:00 +01:00
7ba967a36c
Fix answer_type::get_header().
All checks were successful
continuous-integration/drone/push Build is passing
The previous implementation returned a reference to an out-of-scope string.
2020-01-09 15:54:52 +01:00
913130b57d
Escape keyword “API” in documentation. 2020-01-09 15:16:04 +01:00
447fc05dbe
Add get_header() to answer_type.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-09 14:00:40 +01:00
ec41063488
Add get_new_events().
All checks were successful
continuous-integration/drone/push Build is passing
A more comfortable way to consume stream events.
2020-01-09 12:24:29 +01:00
839e29b37b
Expand section about thread safety in documentation. 2020-01-09 11:23:30 +01:00
e4a5b8e9ce
Move set_proxy() to Instance. 2020-01-09 11:23:15 +01:00
1f9ddf353c
Add streaming example to reference. 2020-01-08 22:29:01 +01:00
f401f9d1b2
Improve documentation for new_stream_contents(). 2020-01-08 21:56:54 +01:00
d2de78ff9e
Add streaming support. 2020-01-08 21:27:27 +01:00
a724006854
Make curl writer non-satatic and add static wrapper.
We need to use the mutex, a class member, from within the writer function.
2020-01-08 19:55:34 +01:00
c93810e241
Move URI building for GET requets to add_parameters_to_uri(). 2020-01-08 17:51:53 +01:00
4b118e75f1
Fix / ignore some clang-tidy warnings. 2020-01-08 17:38:27 +01:00
577c252b42
Improve documentation. 2020-01-08 17:22:41 +01:00
deed340f3d
Add set_proxy(). 2020-01-08 17:20:36 +01:00
1f78b00205
Replace string with string_view where possible. 2020-01-08 16:46:27 +01:00
c07fb1db71
Add support for parameters (GET). 2020-01-08 13:06:12 +01:00
bbd0445821
Add sections about thread safety and text input to documentation. 2020-01-08 11:07:16 +01:00
f195c5bcef
Add get_curl_easy_handle(). 2020-01-06 15:33:23 +01:00
5d90fa97f1
Renamed return_types.hpp to answer.hpp.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-06 14:43:10 +01:00
1ac1bda619
Add parametermap. 2020-01-06 13:29:38 +01:00
cda40d193f
Add doxygen-reference to example. 2020-01-06 10:02:59 +01:00
7563d083c0
Improve exception documentation. 2020-01-06 09:42:51 +01:00
0638f8fe9a
Query max_toot_chars the first time get_max_chars() is called. 2020-01-06 09:31:05 +01:00
6663cca653
Change signature of Instance. 2020-01-06 09:11:32 +01:00
3c6c56d973
Make curlwrapper_instances static. 2020-01-05 20:27:28 +01:00
be2f00faae
Do global curl init / cleanup only once.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-05 19:09:22 +01:00
159cd05f5a
Make _endpoint_map static. 2020-01-05 19:00:24 +01:00
fba5a576f0
Add support for HTTP method PUT. 2020-01-05 16:16:22 +01:00
765fc86179
Add all API endpoints of Pleroma 1.1.7.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-05 16:01:38 +01:00
571206c9f4
Only construct 1 API per Connection.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-05 15:20:59 +01:00
1226f7e57b
Add all API endpoints of Mastodon 3.0. 2020-01-05 15:03:30 +01:00
a77f773c46
Add support for HTTP methods PATCH and DELETE. 2020-01-05 13:59:43 +01:00
9a6cfdc899
Updated example in documentation.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-05 13:40:21 +01:00
078130bac6
Change argument “meth” to “method” in make_request(). 2020-01-05 12:21:58 +01:00
07d16594c9
Add default values to answer_type and update documentation. 2020-01-05 12:21:15 +01:00
9c279822b2
Add headers to answer_type. 2020-01-05 12:03:23 +01:00
96e9d9a9fd
answer_type: Replace error_code with curl_error_code. 2020-01-05 11:52:07 +01:00
86078bb4d6
Fix include order. 2020-01-05 11:51:41 +01:00
61a26dbb67
Query instance for max_toot_chars. 2020-01-05 11:17:10 +01:00
9b49bc1d17
Optimize request-flow. 😃 2020-01-05 10:35:38 +01:00
db315a3a70
Instance: Add getters for hostname, baseuri and access_token. 2020-01-05 10:33:54 +01:00
f872707036
Renamed “Request” to “Connection”.
It will be used not for only one request, but for all requests to an instance.
2020-01-05 09:38:13 +01:00
edc2bba718
Improve documentation for CURLWrapper.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-04 19:16:08 +01:00
ccc9b8235e
Add [[nodiscard]] to make_request(). 2020-01-04 19:06:27 +01:00
cac3e0b505
Simple GET request works.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-04 19:05:18 +01:00
0b525bb748
Add http_method and make_request. 2020-01-04 19:04:50 +01:00
051cf16ceb
Remove premature global curl cleanup, improve documentation. 2020-01-04 18:25:26 +01:00
a7a861351f
Move low-level network stuff to CURLWrapper. 2020-01-04 18:11:24 +01:00
d9c92d5273
Add URI for libcurl-errors(3).
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-04 16:24:41 +01:00
81e579f162
Only initialize libcurl once. 2020-01-04 16:23:52 +01:00
0de7345dc2
Add [[nodiscard]] where desirable.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-04 13:31:22 +01:00
5eb11534a5
Update description for Instance. 2020-01-04 13:29:36 +01:00
8f03c49569
Add constructors and assignment operators to Instance.
Explicitly set copy & move constructors to default, explicitly delete copy &
move assignment operators. Make destructor virtual.
2020-01-04 13:27:36 +01:00
dd1ee45c15
Escape API in documentation where necessary.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-04 12:22:43 +01:00
892f1c6f87
Fix headers in Doxygen output. 2020-01-04 12:04:47 +01:00
f59fc561ba
Add reference to libcurl-errors(3) manpage. 2020-01-04 11:50:14 +01:00
4acab9da5c
Add Request::get() (without real function for now).
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-04 11:38:58 +01:00
e6690c85b4
Add curl initialization. 2020-01-04 11:38:27 +01:00
6d9096193b
Add CURLException. 2020-01-04 11:37:08 +01:00
0311b868aa
Put API endpoints in class API. 2020-01-04 09:29:52 +01:00
5f96861ea8
Rename answer to answer_type. 2020-01-04 09:12:00 +01:00
94dd5f605d
Install headers. 2020-01-03 16:03:08 +01:00
174daaf924
Add request.hpp to mastodonpp.hpp and update example. 2020-01-03 13:10:46 +01:00
9874e76de2
Improve documentation.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-03 13:05:00 +01:00
ed3111eb9e
Add enum for API calls.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-03 12:47:11 +01:00
4c557aae6e
Use Instance and Request classes. 2020-01-03 12:42:10 +01:00
1d3275e429
Add documentation.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-03 11:27:32 +01:00
49e910ecd8
Add return type for requests. 2020-01-03 10:30:56 +01:00
5dc047811e
Add skeleton. 2020-01-03 08:32:03 +01:00