Commit Graph

270 Commits

Author SHA1 Message Date
tastytea 571206c9f4
Only construct 1 API per Connection.
continuous-integration/drone/push Build is passing Details
2020-01-05 15:20:59 +01:00
tastytea 1226f7e57b
Add all API endpoints of Mastodon 3.0. 2020-01-05 15:03:30 +01:00
tastytea a77f773c46
Add support for HTTP methods PATCH and DELETE. 2020-01-05 13:59:43 +01:00
tastytea 270359f719
Add curl to dependency list.
continuous-integration/drone/push Build is passing Details
2020-01-05 13:46:24 +01:00
tastytea 9a6cfdc899
Updated example in documentation.
continuous-integration/drone/push Build is passing Details
2020-01-05 13:40:21 +01:00
tastytea 398383143a
Merge branch 'develop' into main
continuous-integration/drone/push Build is passing Details
2020-01-05 13:26:44 +01:00
tastytea 6edc461c57
Explicitly set NDEBUG for non-debug builds. 2020-01-05 12:45:50 +01:00
tastytea 4cbda2c091
Include function name instead of file name in debuglog. 2020-01-05 12:41:25 +01:00
tastytea 31950d280d
make_request(): Return complete answer_type,
and don't throw if curl_easy_perform() fails.
2020-01-05 12:32:57 +01:00
tastytea 078130bac6
Change argument “meth” to “method” in make_request(). 2020-01-05 12:21:58 +01:00
tastytea 07d16594c9
Add default values to answer_type and update documentation. 2020-01-05 12:21:15 +01:00
tastytea 4016260954
Check for http_status in answer_type::operator bool(). 2020-01-05 12:03:42 +01:00
tastytea 9c279822b2
Add headers to answer_type. 2020-01-05 12:03:23 +01:00
tastytea 96e9d9a9fd
answer_type: Replace error_code with curl_error_code. 2020-01-05 11:52:07 +01:00
tastytea 86078bb4d6
Fix include order. 2020-01-05 11:51:41 +01:00
tastytea 4aa24900ef
Microfix CURLException message.
continuous-integration/drone/push Build is passing Details
2020-01-05 11:17:14 +01:00
tastytea 61a26dbb67
Query instance for max_toot_chars. 2020-01-05 11:17:10 +01:00
tastytea 80cec5b45d
Add debuglog. 2020-01-05 11:06:29 +01:00
tastytea 9b49bc1d17
Optimize request-flow. 😃 2020-01-05 10:35:38 +01:00
tastytea db315a3a70
Instance: Add getters for hostname, baseuri and access_token. 2020-01-05 10:33:54 +01:00
tastytea 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
tastytea edc2bba718
Improve documentation for CURLWrapper.
continuous-integration/drone/push Build is passing Details
2020-01-04 19:16:08 +01:00
tastytea ccc9b8235e
Add [[nodiscard]] to make_request(). 2020-01-04 19:06:27 +01:00
tastytea cac3e0b505
Simple GET request works.
continuous-integration/drone/push Build is passing Details
2020-01-04 19:05:18 +01:00
tastytea 0b525bb748
Add http_method and make_request. 2020-01-04 19:04:50 +01:00
tastytea 051cf16ceb
Remove premature global curl cleanup, improve documentation. 2020-01-04 18:25:26 +01:00
tastytea a7a861351f
Move low-level network stuff to CURLWrapper. 2020-01-04 18:11:24 +01:00
tastytea d9c92d5273
Add URI for libcurl-errors(3).
continuous-integration/drone/push Build is passing Details
2020-01-04 16:24:41 +01:00
tastytea c7f61434b6
Silence some linter warnings I can't do anything about. 2020-01-04 16:24:11 +01:00
tastytea 81e579f162
Only initialize libcurl once. 2020-01-04 16:23:52 +01:00
tastytea 10caa4c7e2
Delete empty file mastodonpp.cpp. 2020-01-04 16:01:42 +01:00
tastytea 0de7345dc2
Add [[nodiscard]] where desirable.
continuous-integration/drone/push Build is passing Details
2020-01-04 13:31:22 +01:00
tastytea 5eb11534a5
Update description for Instance. 2020-01-04 13:29:36 +01:00
tastytea 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
tastytea dd1ee45c15
Escape API in documentation where necessary.
continuous-integration/drone/push Build is passing Details
2020-01-04 12:22:43 +01:00
tastytea c2a33f6619
Merge branch 'develop' into main
continuous-integration/drone/push Build is passing Details
2020-01-04 12:17:51 +01:00
tastytea c9009e1de0
Add FindCURL-workaround CMake < 3.12.
continuous-integration/drone/push Build is passing Details
2020-01-04 12:10:44 +01:00
tastytea 892f1c6f87
Fix headers in Doxygen output. 2020-01-04 12:04:47 +01:00
tastytea c0d5bd9537
CI: Add libcurl4-openssl-dev to dependencies.
continuous-integration/drone/push Build is failing Details
2020-01-04 11:52:03 +01:00
tastytea f59fc561ba
Add reference to libcurl-errors(3) manpage. 2020-01-04 11:50:14 +01:00
tastytea c77a68930c
Change linking of curl to PUBLIC.
continuous-integration/drone/push Build is failing Details
2020-01-04 11:46:34 +01:00
tastytea fe91665b82
Add curl as dependency to CMake config and pkg-config recipe. 2020-01-04 11:46:10 +01:00
tastytea 4acab9da5c
Add Request::get() (without real function for now).
continuous-integration/drone/push Build is failing Details
2020-01-04 11:38:58 +01:00
tastytea e6690c85b4
Add curl initialization. 2020-01-04 11:38:27 +01:00
tastytea 6d9096193b
Add CURLException. 2020-01-04 11:37:08 +01:00
tastytea 0311b868aa
Put API endpoints in class API. 2020-01-04 09:29:52 +01:00
tastytea 5f96861ea8
Rename answer to answer_type. 2020-01-04 09:12:00 +01:00
tastytea 8c2d4c8b97
Generate and install mastodonpp.pc.
continuous-integration/drone/push Build is passing Details
2020-01-03 16:27:59 +01:00
tastytea a7fe14da27
Generate and install mastodonppConfig.cmake and so on. 2020-01-03 16:20:39 +01:00
tastytea e88238a37c
Fix target_sources. 2020-01-03 16:20:27 +01:00