diff --git a/README.adoc b/README.adoc index 81a43d3..4bc1b69 100644 --- a/README.adoc +++ b/README.adoc @@ -380,7 +380,7 @@ strings and you can use unsupported fields in an `Entity` by converting it to ** [x] GET /api/v1/streaming/hashtag ** [x] GET /api/v1/streaming/hashtag/local ** [x] GET /api/v1/streaming/list - ** [ ] GET /api/v1/streaming/direct + ** [x] GET /api/v1/streaming/direct ==== Entities diff --git a/src/api/get_stream.cpp b/src/api/get_stream.cpp index b57752e..69bd7ea 100644 --- a/src/api/get_stream.cpp +++ b/src/api/get_stream.cpp @@ -61,6 +61,11 @@ void API::get_stream(const Mastodon::API::v1 &call, strcall = "/api/v1/streaming/list"; break; } + case v1::streaming_direct: + { + strcall = "/api/v1/streaming/direct"; + break; + } default: { const uint8_t err = static_cast(error::INVALID_ARGUMENT); diff --git a/src/mastodon-cpp.hpp b/src/mastodon-cpp.hpp index cd76fa5..98c0b37 100644 --- a/src/mastodon-cpp.hpp +++ b/src/mastodon-cpp.hpp @@ -276,7 +276,7 @@ namespace Mastodon streaming_hashtag, streaming_hashtag_local, streaming_list, - // streaming_direct, + streaming_direct, // Glitch-Soc bookmarks,