Add support for /api/v1/streaming/health.

This commit is contained in:
tastytea 2019-09-20 02:33:42 +02:00
parent 3446bbf5d6
commit 7f80bff4e1
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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";

View File

@ -269,7 +269,7 @@ namespace Mastodon
timelines_tag_hashtag,
timelines_list_list_id,
// streaming_health,
streaming_health,
streaming_user,
streaming_public,
streaming_public_local,