Commit Graph

92 Commits

Author SHA1 Message Date
935c84e001
Search for all directories in shorten_filename().
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-06 16:43:14 +01:00
27054d480e
Fix initialization notation of version. 2020-01-06 16:42:42 +01:00
f01ec3eee0
Set User-Agent. 2020-01-06 16:38:09 +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
a1a6997619
Exclude shorten_filename from doxygen.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-06 10:03:18 +01:00
cda40d193f
Add doxygen-reference to example. 2020-01-06 10:02:59 +01:00
5d6ad60d3b
Add simple example.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-06 09:43:08 +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
a6bd081280
Refactored constructor of Instance.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-05 20:47:34 +01:00
cb7dee1ab7
Add errorlog.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-05 20:39:05 +01:00
3c6c56d973
Make curlwrapper_instances static. 2020-01-05 20:27:28 +01:00
b93fe57cae
Show filename in debuglog instead of function. 2020-01-05 20:19:59 +01:00
b8802d3674
Make assignment to _max_chars clearer. 2020-01-05 20:10:54 +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
1bfe3136aa
Add placeholder for :hashtag. 2020-01-05 16:15:58 +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
270359f719
Add curl to dependency list.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-05 13:46:24 +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
398383143a
Merge branch 'develop' into main
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-05 13:26:44 +01:00
6edc461c57
Explicitly set NDEBUG for non-debug builds. 2020-01-05 12:45:50 +01:00
4cbda2c091
Include function name instead of file name in debuglog. 2020-01-05 12:41:25 +01:00
31950d280d
make_request(): Return complete answer_type,
and don't throw if curl_easy_perform() fails.
2020-01-05 12:32:57 +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
4016260954
Check for http_status in answer_type::operator bool(). 2020-01-05 12:03:42 +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
4aa24900ef
Microfix CURLException message.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-05 11:17:14 +01:00
61a26dbb67
Query instance for max_toot_chars. 2020-01-05 11:17:10 +01:00
80cec5b45d
Add debuglog. 2020-01-05 11:06:29 +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