From 6c87cec5b38097fc3c35b39b09d9b1f1161bc5aa Mon Sep 17 00:00:00 2001 From: Niklas Poslovski Date: Sat, 8 Sep 2018 15:49:12 +0200 Subject: [PATCH] Added direct messages to API documentation (#701) * Added direct messages timeline to API documentation * Added direct messages to Streaming API documentation --- Using-the-API/API.md | 1 + Using-the-API/Streaming-API.md | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Using-the-API/API.md b/Using-the-API/API.md index 97baca49..80b520f7 100644 --- a/Using-the-API/API.md +++ b/Using-the-API/API.md @@ -826,6 +826,7 @@ Returns the target [Status](#status). GET /api/v1/timelines/public GET /api/v1/timelines/tag/:hashtag GET /api/v1/timelines/list/:list_id + GET /api/v1/timelines/direct Query parameters: diff --git a/Using-the-API/Streaming-API.md b/Using-the-API/Streaming-API.md index 888352f7..3153cf02 100644 --- a/Using-the-API/Streaming-API.md +++ b/Using-the-API/Streaming-API.md @@ -25,6 +25,10 @@ Returns all public statuses for a particular hashtag (query param `tag`) Returns statuses for list (query param `list`) +**GET /api/v1/streaming/direct** + +Returns all direct messages + ### Stream contents The stream will contain events as well as heartbeat comments. Lines that begin with a colon (`:`) can be ignored by parsers, they are simply there to keep the connection open. Events have this structure: