mirror of https://github.com/zulip/zulip.git
api-docs: Update narrow usage examples for get_messages.
Updates narrow parameters in the javascript and python usage examples for the get_messages endpoint to use the "channel" operator instead of the "stream" operator. Part of the stream to channel rename project.
This commit is contained in:
parent
48df3d87e1
commit
7644c83cca
|
@ -167,7 +167,7 @@ add_example("get_messages", "/messages:get", 200, async (client, console) => {
|
|||
num_after: 0,
|
||||
narrow: [
|
||||
{operator: "sender", operand: "iago@zulip.com"},
|
||||
{operator: "stream", operand: "Verona"},
|
||||
{operator: "channel", operand: "Verona"},
|
||||
],
|
||||
};
|
||||
|
||||
|
|
|
@ -967,7 +967,7 @@ def get_messages(client: Client) -> None:
|
|||
"num_after": 0,
|
||||
"narrow": [
|
||||
{"operator": "sender", "operand": "iago@zulip.com"},
|
||||
{"operator": "stream", "operand": "Verona"},
|
||||
{"operator": "channel", "operand": "Verona"},
|
||||
],
|
||||
}
|
||||
result = client.get_messages(request)
|
||||
|
|
Loading…
Reference in New Issue