diff --git a/README.adoc b/README.adoc index fc59350..6c7ceed 100644 --- a/README.adoc +++ b/README.adoc @@ -373,6 +373,7 @@ strings and you can use unsupported fields in an `Entity` by converting it to ** [x] GET /api/v1/timelines/tag/:hashtag ** [x] GET /api/v1/timelines/list/:list_id * Streaming API + ** [x] GET /api/v1/streaming/health ** [x] GET /api/v1/streaming/user ** [x] GET /api/v1/streaming/public ** [x] GET /api/v1/streaming/public/local diff --git a/src/api/get.cpp b/src/api/get.cpp index f3ba41e..2b6defa 100644 --- a/src/api/get.cpp +++ b/src/api/get.cpp @@ -236,6 +236,11 @@ const return_call API::get(const Mastodon::API::v1 &call, strcall = "/api/v1/conversations"; break; } + case v1::streaming_health: + { + strcall = "/api/v1/streaming/health"; + break; + } default: { ttdebug << "ERROR: Invalid argument.\n"; diff --git a/src/mastodon-cpp.hpp b/src/mastodon-cpp.hpp index 2d1e12f..048e9d9 100644 --- a/src/mastodon-cpp.hpp +++ b/src/mastodon-cpp.hpp @@ -269,7 +269,7 @@ namespace Mastodon timelines_tag_hashtag, timelines_list_list_id, - // streaming_health, + streaming_health, streaming_user, streaming_public, streaming_public_local,