Commit Graph

27 Commits

Author SHA1 Message Date
tastytea 5bf1e9bf25
Define copy constructor for instance.
continuous-integration/drone/push Build is passing Details
Needed because the underlying CURLWrapper is not copied but freshly created, so
access_token, proxy, cainfo and useragent have to be set.
2020-03-21 11:38:34 +01:00
tastytea 251d8a975c
Set access token in CURLWrapper too if it is set in Instance. 2020-03-21 11:26:23 +01:00
tastytea c192f352f0
Extract post formats via regex.
continuous-integration/drone/push Build is passing Details
2020-01-14 22:28:14 +01:00
tastytea 0d8b2e8490
Use regex to extract NodeInfo addresses. 2020-01-14 21:53:42 +01:00
tastytea 223db7b255
Use regex to extract max_toot_chars. 2020-01-14 21:03:04 +01:00
tastytea a8e342202d
Move types into types.hpp and add answer_type::next() and prev(). 2020-01-14 20:44:08 +01:00
tastytea 975fe57677
Simplify connection setup.
By adding CURLWrapper::setup_connection_properties.
2020-01-12 17:24:02 +01:00
tastytea 02b0b05aa1
Add Instance::ObtainToken. 2020-01-12 16:28:04 +01:00
tastytea 79c5087ca5
Marked some functions noexcept.
continuous-integration/drone/push Build is failing Details
2020-01-12 15:28:26 +01:00
tastytea fd5275f4a3
Return default max chars on exception in get_max_chars(). 2020-01-11 23:04:40 +01:00
tastytea a6b328c2d1
Add Instance::get_post_formats().
continuous-integration/drone/push Build is passing Details
2020-01-11 20:05:11 +01:00
tastytea b9bf28c264
Add Instance::get_nodeinfo(). 2020-01-11 19:51:16 +01:00
tastytea 40d985f9af
Add missing header. 2020-01-11 18:13:15 +01:00
tastytea 1f78b00205
Replace string with string_view where possible. 2020-01-08 16:46:27 +01:00
tastytea c07fb1db71
Add support for parameters (GET). 2020-01-08 13:06:12 +01:00
tastytea 5d90fa97f1
Renamed return_types.hpp to answer.hpp.
continuous-integration/drone/push Build is passing Details
2020-01-06 14:43:10 +01:00
tastytea 0638f8fe9a
Query max_toot_chars the first time get_max_chars() is called. 2020-01-06 09:31:05 +01:00
tastytea 6663cca653
Change signature of Instance. 2020-01-06 09:11:32 +01:00
tastytea a6bd081280
Refactored constructor of Instance.
continuous-integration/drone/push Build is passing Details
2020-01-05 20:47:34 +01:00
tastytea b8802d3674
Make assignment to _max_chars clearer. 2020-01-05 20:10:54 +01:00
tastytea 61a26dbb67
Query instance for max_toot_chars. 2020-01-05 11:17:10 +01:00
tastytea db315a3a70
Instance: Add getters for hostname, baseuri and access_token. 2020-01-05 10:33:54 +01:00
tastytea a7a861351f
Move low-level network stuff to CURLWrapper. 2020-01-04 18:11:24 +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 e6690c85b4
Add curl initialization. 2020-01-04 11:38:27 +01:00
tastytea 4c557aae6e
Use Instance and Request classes. 2020-01-03 12:42:10 +01:00