mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 02:23:57 +00:00
js_examples: Migrate and test get_custom_emoji example.
This commit is contained in:
committed by
Tim Abbott
parent
eaa085a6f8
commit
f96c86ad63
@@ -37,6 +37,7 @@ const ExamplesHandler = function () {
|
||||
|
||||
await generate_validation_data(client, examples.send_message);
|
||||
await generate_validation_data(client, examples.create_user);
|
||||
await generate_validation_data(client, examples.get_custom_emoji);
|
||||
|
||||
console.log(JSON.stringify(response_data));
|
||||
return;
|
||||
@@ -100,4 +101,10 @@ add_example('create_user', '/users:post', 200, async (client) => {
|
||||
// {code_example|end}
|
||||
});
|
||||
|
||||
add_example('get_custom_emoji', '/realm/emoji:get', 200, async (client) => {
|
||||
// {code_example|start}
|
||||
return await client.emojis.retrieve();
|
||||
// {code_example|end}
|
||||
});
|
||||
|
||||
main();
|
||||
|
||||
Reference in New Issue
Block a user