2018-07-03 20:22:53 +02:00
|
|
|
# Get all custom emoji
|
|
|
|
|
2020-04-28 20:00:46 +02:00
|
|
|
{generate_api_description(/realm/emoji:get)}
|
2018-07-03 20:22:53 +02:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
2018-10-18 00:14:30 +02:00
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
2018-07-03 20:22:53 +02:00
|
|
|
|
|
|
|
{generate_code_example(python)|/realm/emoji:get|example}
|
|
|
|
|
2018-10-18 00:14:30 +02:00
|
|
|
{tab|js}
|
2018-07-03 20:22:53 +02:00
|
|
|
|
|
|
|
More examples and documentation can be found [here](https://github.com/zulip/zulip-js).
|
|
|
|
```js
|
|
|
|
const zulip = require('zulip-js');
|
|
|
|
|
2019-01-07 14:27:58 +01:00
|
|
|
// Pass the path to your zuliprc file here.
|
2018-07-03 20:22:53 +02:00
|
|
|
const config = {
|
2019-01-07 14:27:58 +01:00
|
|
|
zuliprc: 'zuliprc',
|
2018-07-03 20:22:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
zulip(config).then((client) => {
|
|
|
|
return client.emojis.retrieve();
|
|
|
|
}).then(console.log);
|
|
|
|
```
|
|
|
|
|
2018-10-18 00:14:30 +02:00
|
|
|
{tab|curl}
|
|
|
|
|
2019-10-14 11:47:14 +02:00
|
|
|
{generate_code_example(curl)|/realm/emoji:get|example}
|
2018-07-03 20:22:53 +02:00
|
|
|
|
2018-10-18 00:14:30 +02:00
|
|
|
{end_tabs}
|
2018-07-03 20:22:53 +02:00
|
|
|
|
|
|
|
## Arguments
|
|
|
|
|
|
|
|
{generate_api_arguments_table|zulip.yaml|/realm/emoji:get}
|
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Return values
|
|
|
|
|
2020-05-20 11:57:57 +02:00
|
|
|
{generate_return_values_table|zulip.yaml|/realm/emoji:get}
|
2018-07-03 20:22:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response may look like:
|
|
|
|
|
|
|
|
{generate_code_example|/realm/emoji:get|fixture(200)}
|