Commit Graph

33 Commits

Author SHA1 Message Date
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