Commit Graph

334 Commits

Author SHA1 Message Date
tastytea 69109ffc91
Updated Easy::Filter. Only cosmetic changes. 2019-05-12 17:34:34 +02:00
tastytea 26f43a1682
Updated Easy::Emoji.
Added visible_in_picker().
2019-05-10 22:21:08 +02:00
tastytea fb689bcac0
Updated Easy::Context. Removed superfluous debug messages. 2019-05-10 20:23:34 +02:00
tastytea 622c4c1baf
Updated Easy::Card.
Deleted excess debug statement, added undocumented attribute
embed_url.
2019-05-05 14:18:57 +02:00
tastytea 8fe607d43e
Updated Easy::Attachment.
Moved Metadata into Attachment::meta.
2019-05-01 19:51:50 +02:00
tastytea 0b72c80d94
Fixed Account::privacy() and Account::Source::privacy(). 2019-05-01 12:43:02 +02:00
tastytea 14593ccf17
Changed wording a bit. 2019-05-01 01:28:46 +02:00
tastytea 8448d8e720
Updated Easy::Account.
continuous-integration/drone/push Build is passing Details
Removed all setters, changed the type for account fields, added new
attributes.
2019-05-01 00:57:00 +02:00
tastytea ea0c3c5250
Fixed Easy::string_to_time() definition. 2019-05-01 00:10:19 +02:00
tastytea a98351905b
Added Easy::account_field_type and Easy::account_fields. 2019-04-30 23:49:55 +02:00
tastytea de78019cb3
Added Easy::string_to_time(). 2019-04-30 23:29:05 +02:00
tastytea 892a05e9fb
Removed mentions of base64. 2019-04-27 21:48:15 +02:00
tastytea a766ff001c
Check if files exists. 2019-04-27 21:38:01 +02:00
tastytea 5e6bf432a8
Harmonize calls to Entity::check_valid(). 2019-04-25 14:55:45 +02:00
tastytea a2aa33cf27
Added tests for API::v1::lists.
the build was successful Details
2019-04-25 14:26:14 +02:00
tastytea 318eda9101
Confirmed that Account::moved() works
and changed my mind about writable Status::Attachment.
2019-04-22 05:15:03 +02:00
tastytea 2287a4753c
Fixed operator << warnings.
the build was successful Details
2019-04-21 13:59:31 +02:00
tastytea d3d9f0f4e4
Fixed operator << for Easy::return_entity. 2019-04-21 13:17:39 +02:00
tastytea 7558c73648
Reformatted switch. 2019-04-21 06:15:37 +02:00
tastytea 14d0263606
Added support for /api/v1/suggestions,
and /api/v1/suggestions/:account_id.
2019-04-20 00:39:52 +02:00
tastytea eaaa63a20c
Fixed definition of newly moved functions, changed calls to them.
the build was successful Details
2019-04-19 10:42:30 +02:00
tastytea fb27e79b3d
Deprecated API::urlencode, API::urldecode, API::unescape_html.
the build failed Details
Replaced by Mastodon::urlencode, Mastodon::urldecode,
Mastodon::unescape_html.
2019-04-19 09:11:37 +02:00
tastytea 2527e9523e
Added support for /api/v1/filters and /api/v1/filters/:id. 2019-04-19 05:20:48 +02:00
tastytea 7f46be68d1
Added daylight savings time detection to Easy::Entity::get_time(). 2019-04-18 04:46:55 +02:00
tastytea 275504a079
Added "visible_in_picker" to required fields in Easy::emoji. 2019-04-16 19:51:34 +02:00
tastytea 4a3432e339
Added support for /api/v1/accounts.
the build was successful Details
2019-04-16 19:26:09 +02:00
tastytea 346154c062
Added Easy::Token. 2019-04-16 17:56:45 +02:00
tastytea 8db37998fc
Fixed include path. 2019-04-16 17:55:49 +02:00
tastytea 76073881fe
Added support for /api/v1/apps/verify_credentials.
the build was successful Details
2019-04-16 02:58:20 +02:00
tastytea 5408f6f235
Added test for malformed JSON. 2019-04-15 03:48:39 +02:00
tastytea f84a272f53
Added support for "errors" in addition to "error". #12
the build was successful Details
2019-04-15 03:07:04 +02:00
tastytea 9d1bb4a6e3
Changed requirement for a valid Easy::Status.
Made it required that "replies_count" and "application" is present in
statuses.
2019-04-15 02:03:24 +02:00
tastytea 7d245e0df1
Fixed deletion of parameters. 2019-04-14 19:57:39 +02:00
tastytea 64d4c65668
Added "emojis" to required fields in Easy::Account. 2019-04-14 19:57:07 +02:00
tastytea 7de4c8c0ba
Do not require contact_account in Easy::Instance.
It is not required to have one, according to
<https://docs.joinmastodon.org/api/entities/#instance>.
2019-04-14 18:09:25 +02:00
tastytea d4736308fd
Put http_error_code in return_base. 2019-04-14 17:58:33 +02:00
tastytea a65cb89d20
Removed obsolete parameters from documentation.
the build was successful Details
2019-04-14 06:44:11 +02:00
tastytea 4e8c44a4ba
Added list of types to readme.
the build was successful Details
2019-04-13 21:50:20 +02:00
tastytea 4614cfba0c
Documentation fixes. 2019-04-13 21:04:59 +02:00
tastytea 3fe21ccfc7
Small documetation fixes.
the build was successful Details
2019-04-13 02:54:46 +02:00
tastytea 4302814e17
Replaced Easy::alertmap with Easy::alerts. 2019-04-13 02:45:27 +02:00
tastytea bc82dac69b
Marked Easy::time operators const. 2019-04-13 02:27:45 +02:00
tastytea a3f2e94034
Bettered documentation. 2019-04-13 02:27:21 +02:00
tastytea a0d47d48fa
Replaced parametermap with own types.
the build was successful Details
2019-04-12 01:10:33 +02:00
tastytea c2eff2b09e
Print remaining content of the stream in debug mode.
the build was successful Details
2019-04-10 21:12:13 +02:00
tastytea 031c0c3e22
Catch path by value in request_stream().
the build was successful Details
2019-04-10 21:04:04 +02:00
tastytea 09ecd8e5e4
Report errors with get_stream() in-stream.
the build was successful Details
2019-04-10 20:52:36 +02:00
tastytea a551516be2
Added short descriptions to the examples.
the build was successful Details
Also added example02 to doxygen-documentation.
2019-04-10 02:35:38 +02:00
tastytea bde8d11706
Revamped streams. 2019-04-10 02:25:55 +02:00
tastytea ccedfba4af
Added GET_STREAM to switch in http::request(). 2019-04-09 21:58:02 +02:00
tastytea c9a826ebcb
Improved documentation a bit.
the build was successful Details
2019-04-05 14:41:18 +02:00
tastytea 6a01efc6aa
Moved API::http::method to http_method. 2019-04-05 14:40:54 +02:00
tastytea 88d69be298
Let Account::Source fall back to Easy::Entity. 2019-04-05 14:39:35 +02:00
tastytea a63f63bd4f
Fixed include guard. 2019-04-02 11:20:35 +02:00
tastytea b49e8600ac
Moved types to types.hpp and reformatted mastodon-cpp.hpp.
Also renamed easy/types.hpp to easy/types_easy.hpp.
2019-04-02 11:16:52 +02:00
tastytea 38e8809b92
Moved return_base and return_call to their own header. 2019-04-02 10:37:27 +02:00
tastytea c35b7f56fa
Moved easy types to easy/types.hpp.
the build was successful Details
2019-03-31 22:24:14 +02:00
tastytea 86dccaf2d7
Removed inclusion of easy.hpp from entities.
Also added override to valid().
2019-03-31 21:43:57 +02:00
tastytea 6f11116b1c
strtime: Explicitly cast char array to const string.
the build was successful Details
2019-03-31 00:08:11 +01:00
tastytea 6690d2bd0b
Changed for-loop to std::transform. 2019-03-31 00:02:02 +01:00
tastytea 94651f8dba
Changed for-loop to std::transform. 2019-03-30 23:59:27 +01:00
tastytea 07c39ab4bf
Changed for-loop to std::transform. 2019-03-30 23:57:25 +01:00
tastytea 3328821bca
Changed for-loop to std::transform. 2019-03-30 23:55:40 +01:00
tastytea c7f7123ba6
Fixed some capture clauses. 2019-03-30 23:49:08 +01:00
tastytea f5b05893cd
Changed for-loop to std::transform. 2019-03-30 23:42:06 +01:00
tastytea d84a18a0e7
Changed for-loop to std::transform. 2019-03-30 23:15:22 +01:00
tastytea 7ac5b2545a
Cleaned up whitespace. 2019-03-30 23:10:30 +01:00
tastytea ff0bd7b906
Replaced for-loop with std::transform.
the build was successful Details
2019-03-30 22:24:15 +01:00
tastytea 57ec1fd23a
Cleaned up whitespace. 2019-03-30 22:14:58 +01:00
tastytea 43fd2aae6e
Changed debug.hpp to respect 80 char rule. 2019-03-30 20:53:53 +01:00
tastytea baf417ce69
Added documentation to return_entity{,_vector}.
the build was successful Details
2019-03-30 13:18:42 +01:00
tastytea c854230f95
Added documentation for return_base and return_call. 2019-03-30 13:06:57 +01:00
tastytea da1ee09640
Added explicit instantiations for return_entity{,_vector}. 2019-03-30 12:12:59 +01:00
tastytea 54a1fb0d3e
Added Easy::time as time type.
the build was successful Details
2019-03-29 14:44:39 +01:00
tastytea dff3b11c00
Cleaned up, fixed formatting and so on.
the build was successful Details
2019-03-28 21:23:24 +01:00
tastytea 76dc6a623c
Put Easy return types in own header. 2019-03-28 15:35:23 +01:00
tastytea ce5f9510a6
Put Entity in own header. 2019-03-28 15:35:00 +01:00
tastytea 4aad1425eb
Turned Easy into namespace, renamed class Easy::API.
Don't look, I'm not done yet! :-)
2019-03-28 15:30:56 +01:00
tastytea 354f7e1b90
Removed unnecessary type qualifiers. 2019-03-28 13:45:30 +01:00
tastytea 12d986ed06
Templated return_entity and return_entity_vector.
the build failed Details
2019-03-28 13:33:28 +01:00
tastytea 0b35fa0828
Uodated copyright years. 2019-03-20 06:15:43 +01:00
tastytea c4fae35100
Reformatted for 80 char rule.
the build was successful Details
2019-03-14 18:34:34 +01:00
tastytea c43436d970
misc
the build was successful Details
2019-03-11 21:13:58 +01:00
tastytea d85190b113
Use std::transform instead of for loop in json_array_to_vector. 2019-03-11 21:13:34 +01:00
tastytea e07dc45184
Inherit constructors from Entity. 2019-03-11 20:48:54 +01:00
tastytea 1f36568b20
Added contructor with Json::Value and operator Json::Value() to Entity 2019-03-11 20:41:52 +01:00
tastytea f227b25e85
Revert "Added const to overloaded operators."
the build was successful Details
This reverts commit 2103eb4ac2.
2019-03-03 12:24:09 +01:00
tastytea 2103eb4ac2
Added const to overloaded operators.
the build failed Details
2019-03-03 12:14:11 +01:00
tastytea f28fac5579
Fixed << overloading. 2019-03-03 11:16:23 +01:00
tastytea d31c83f1d9
Did API inventory.
the build was successful Details
Added missing calls to readme, reordered calls, marked deprecated
calls.
2019-03-03 10:41:10 +01:00
tastytea 5fa7887fb1
Added operator overloads to return_entity and return_entity_vector 2019-03-02 20:21:31 +01:00
tastytea e1b32d13c8
Added example.
the build was successful Details
2019-03-02 13:52:35 +01:00
tastytea ebd40ba4d5
Changed default values for strings from 0 to "". 2019-03-02 12:47:15 +01:00
tastytea 4d3ffb5516
Typo 2019-03-02 12:21:40 +01:00
tastytea 9f21c5811a
Changed error codes for curlpp errors. 2019-03-02 11:53:02 +01:00
tastytea 4fb13d1876
Removed constexpr for g++-5.
the build was successful Details
2019-02-25 14:55:01 +01:00
tastytea 25628e1d5d
Added virtual destructors to API and Easy::Entity.
the build failed Details
2019-02-25 14:36:49 +01:00
tastytea 7bdeaeb236
Changed return types for simple calls.
the build failed Details
Also added return_entity, return_entity_vector and GenericEntity().
2019-02-25 13:55:24 +01:00
tastytea ada8f45415
Changed return tyoe for register_app[12]. 2019-02-25 12:32:19 +01:00
tastytea cbb1e18b0c
Replaced return types for get_stream, patch, post, put, del
the build failed Details
2019-02-22 12:36:03 +01:00