api docs: Advertise "topic" argument instead of "subject" on /messages.

They have the same meaning but we're transitioning away from the
"subject" terminology, so we should advertise "topic" in docs.
This commit is contained in:
Mateusz Mandera
2019-12-30 23:06:50 +01:00
committed by Tim Abbott
parent 86721c3be5
commit bbafced254
2 changed files with 2 additions and 2 deletions

View File

@@ -582,7 +582,7 @@ def send_message(client):
request = { request = {
"type": "stream", "type": "stream",
"to": "Denmark", "to": "Denmark",
"subject": "Castle", "topic": "Castle",
"content": "I come not, friends, to steal away your hearts." "content": "I come not, friends, to steal away your hearts."
} }
result = client.send_message(request) result = client.send_message(request)

View File

@@ -114,7 +114,7 @@ paths:
"sender_id": 13215, "sender_id": 13215,
"sender_realm_str": "example", "sender_realm_str": "example",
"sender_short_name": "othello-bot", "sender_short_name": "othello-bot",
"subject": "Castle", "topic": "Castle",
"subject_links": [], "subject_links": [],
"timestamp": 1375978403, "timestamp": 1375978403,
"type": "stream" "type": "stream"