mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 15:25:19 +00:00
Generate clients (#206)
This commit is contained in:
13
examples/emoji/print/node/printTextIncludingEmoji.js
Executable file
13
examples/emoji/print/node/printTextIncludingEmoji.js
Executable file
@@ -0,0 +1,13 @@
|
||||
import * as emoji from "m3o/emoji";
|
||||
|
||||
// Print text and renders the emojis with aliases e.g
|
||||
// let's grab a :beer: becomes let's grab a 🍺
|
||||
async function PrintTextIncludingEmoji() {
|
||||
let emojiService = new emoji.EmojiService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await emojiService.print({
|
||||
text: "let's grab a :beer:",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await PrintTextIncludingEmoji();
|
||||
Reference in New Issue
Block a user