Commit Graph

138 Commits

Author SHA1 Message Date
5bf1e9bf25
Define copy constructor for instance.
All checks were successful
continuous-integration/drone/push Build is passing
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
251d8a975c
Set access token in CURLWrapper too if it is set in Instance. 2020-03-21 11:26:23 +01:00
abd7079c5a
Allow argument in constructor of Connection to be const.
Some checks are pending
continuous-integration/drone/push Build is running
2020-03-20 14:47:44 +01:00
9d37bebdc8
Add missing constructors and assignment operators
All checks were successful
continuous-integration/drone/push Build is passing
… to Instance and Connection.
2020-03-20 13:49:30 +01:00
fc32e8ac0a
Add copy constructor for CURLWrapper.
The copy constructor does the same as the constructor. A new CURL handle is used
for the “copy”.
2020-03-20 13:49:20 +01:00
854d2f67af
Updated Pleroma endpoints to version 2.0.0.
* v1::
  * pleroma_conversations_id_read
  * pleroma_accounts_id_scrobbles
  * pleroma_scrobble
  * pleroma_statuses_id_reactions_emoji
  * pleroma_statuses_id_reactions

* pleroma::
  * admin_users_nickname_toggle_activation
  * admin_users_permission_group_permission_group
  * admin_users_activate
  * admin_users_deactivate
  * admin_instances_instance_statuses
  * admin_statuses
  * admin_users_force_password_reset
  * admin_grouped_reports
  * admin_reports_id_notes
  * admin_reports_report_id_notes_id
  * admin_restart
  * admin_config_descriptions
  * admin_moderation_log
  * admin_reload_emoji
  * admin_users_confirm_email
  * admin_users_resend_confirm_email
  * admin_stats
  * emoji_packs
  * emoji_packs_name
  * emoji_packs_name_update_file
  * emoji_packs_name_update_metadata
  * emoji_packs_download_from
  * emoji_packs_list_from
  * emoji_packs_name_download_shared
2020-03-12 11:38:41 +01:00
1c3efd3589
Typo: A space too much. 2020-02-12 20:22:47 +01:00
58aebfc4c0
Mark unescape_html() nodiscard.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-03 13:06:01 +01:00
185ab91978
Rename buffer_mutex → _buffer_mutex.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-28 08:11:56 +01:00
56cabf48a8
Add clang-tidy exceptions for http_method. 2020-01-27 01:09:20 +01:00
deeff83410
Make some private members of CURLWrapper static.
All checks were successful
continuous-integration/drone/push Build is passing
replace_parameter_in_uri(), add_parameters_to_uri() and add_mime_part().
2020-01-26 08:50:05 +01:00
65ff76312b
Add nlohmann-json example.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-26 00:49:49 +01:00
02a22d773c
Make set_proxy(), set_cainfo(), set_useragent() virtual.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-24 22:06:47 +01:00
bb088e6d70
Mark CURLWrapper::get_buffer() inline. 2020-01-24 21:57:15 +01:00
ac4150a3aa
Fix decumentation for CURLWrapper destructor. 2020-01-24 21:50:51 +01:00
c9ea49ed91
Enhance documentation for Instance and Connection.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-24 02:18:54 +01:00
9523de8788
Mark buffer variables const.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-20 02:46:00 +01:00
2c13f03a1c
Clarify documentation for Instance::ObtainToken::step_2(). 2020-01-20 02:32:48 +01:00
3d614afa72
Instance is not a function. 2020-01-20 02:29:01 +01:00
60f26dc864
Report right headerfile location for Instance::ObtainToken. 2020-01-20 02:26:15 +01:00
837524661c
Indentation fix. 2020-01-18 18:09:49 +01:00
c75aefbe2a
Fix header names in documentation.
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-01-17 17:30:31 +01:00
393c179c00
Make main page of reference more precise. 2020-01-17 17:30:31 +01:00
d8582f33c1
Mention the dependency on C++17.
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-01-17 17:29:44 +01:00
bdd328ac91
Remove useless const. 2020-01-16 18:19:47 +01:00
8cfba1f16b
Add example to unescape_html() documentation. 2020-01-16 18:06:14 +01:00
343fe2adca
Add unescape_html().
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-15 19:09:43 +01:00
a237d74a81
Use bracket initialization in example code. 2020-01-14 23:34:50 +01:00
9ccd724693
Mark parse_pagination() nodiscard. 2020-01-14 23:32:04 +01:00
be42f30631
Removed superfluous const from parameter for readability. 2020-01-14 23:31:39 +01:00
7afc8d19a9
Add documentation for set_useragent().
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-14 23:28:20 +01:00
968863301a
Mark ObtainToken constructor explicit. 2020-01-14 23:27:30 +01:00
a8e342202d
Move types into types.hpp and add answer_type::next() and prev(). 2020-01-14 20:44:08 +01:00
9ae50917dd
Remove Instance::get_proxy() and Instance::get_cainfo().
Some checks failed
continuous-integration/drone/push Build is failing
We can't get the values that were set using environment variables or build-time
options. We don't need them anymore for initializing “Connection”s.
2020-01-12 17:39:39 +01:00
1b4ad05acb
Add set_useragent(). 2020-01-12 17:37:06 +01:00
975fe57677
Simplify connection setup.
By adding CURLWrapper::setup_connection_properties.
2020-01-12 17:24:02 +01:00
b4428ed823
Mark CURLWrapper::escape_url() and unescape_url() nodiscard. 2020-01-12 17:01:09 +01:00
78ef177e58
Hide CURLWrapper::set_proxy(). 2020-01-12 17:00:49 +01:00
b192bc70c7
Fix @since-tags that point to nonexisting versions.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-12 16:30:20 +01:00
7af01ffb17
Add ObtainToken-example.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-12 16:28:11 +01:00
02b0b05aa1
Add Instance::ObtainToken. 2020-01-12 16:28:04 +01:00
79c5087ca5
Marked some functions noexcept.
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-12 15:28:26 +01:00
7fc19639b1
Add missing header. 2020-01-12 15:25:04 +01:00
97eb269865
Add Instance::set_cainfo(). 2020-01-12 13:37:53 +01:00
b2f370a727
Add escape_url() and unescape_url() to CURLWrapper. 2020-01-12 01:04:23 +01:00
a6b328c2d1
Add Instance::get_post_formats().
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-11 20:05:11 +01:00
b9bf28c264
Add Instance::get_nodeinfo(). 2020-01-11 19:51:16 +01:00
d749e3aa23
Improve documentation for get_max_chars(). 2020-01-11 17:59:14 +01:00
f3f8efac25
Add DELETE example.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-11 16:45:31 +01:00
5c61d6fd27
Add support for DELETE requests. 2020-01-11 16:24:06 +01:00