From 550fe2d9e767262dba8e04b7b940f65ed13eeccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=A4=E3=83=BC=E3=83=B3=E6=A7=98?= Date: Wed, 14 Aug 2024 02:48:13 +0000 Subject: [PATCH] docs: create solar-network/creator/stickers --- zh/solar-network/creator/stickers.md | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 zh/solar-network/creator/stickers.md diff --git a/zh/solar-network/creator/stickers.md b/zh/solar-network/creator/stickers.md new file mode 100644 index 0000000..40e8f63 --- /dev/null +++ b/zh/solar-network/creator/stickers.md @@ -0,0 +1,29 @@ +--- +title: 贴图及贴图包 +description: Stickers, Emotes 和 Emoji +published: true +date: 2024-08-14T02:48:10.120Z +tags: solar network +editor: markdown +dateCreated: 2024-08-14T02:48:10.120Z +--- + +贴图可以帮助用户通过 Solar Network 更好的表达他们的情绪,这篇文章将会向你介绍如何上传、使用一个贴图 + +## 贴图包 + +贴图必须跟随一个贴图包,要创建一个贴图包,你首先需要获得创作者计划的权限,之后利用 cURL 工具向服务器发起一个 POST 请求来创建贴图包。 + +```http +POST https://api.sn.solsynth.dev/cgi/files/stickers/packs +Content-Type: application/json +Authorization: Bearer + +{ + "prefix": "solar", + "name": "Solar Network Defaults", + "description": "Solar Network official default sticker pack, with a bunch of useful and funny stickers." +} +``` + +这个 API Endpoint 将会返回一个 JSON 对象其中包括了你贴图包的详情信息,其中有一个 `"id"` 字段你需要格外留意,将其记下来。之后会用到。 \ No newline at end of file