Skip to content

发送私信(带专辑) ​

登录后调用此接口,传入用户 id 和要发送的信息,专辑 id, 可以发送专辑私信,返回内容为消息 id

接口信息 ​

项目值
接口地址/send/album
请求方式GET / POST
需要登录是
对应模块send_album
文档分类社交与消息

请求参数 ​

参数类型必填默认值说明
user_idsstring[] | string✅-用户 id,多个需用逗号隔开
idstring✅-要发送专辑的 id
msgstring✅-要发送的信息

HTTP 示例 ​

bash
GET /send/album?user_ids=1&id=351318&msg=测试

编程式调用 ​

ts
import { sendAlbum } from 'hana-music-api';

const result = await sendAlbum({
  user_ids: '1',
  id: '351318',
  msg: '测试',
});

console.log(result.body);

补充说明 ​

说明 : 登录后调用此接口,传入用户 id 和要发送的信息,专辑 id, 可以发送专辑私信,返回内容为消息 id

必选参数 :

user_ids : 用户 id,多个需用逗号隔开

id : 要发送专辑的 id

msg : 要发送的信息

接口地址 : /send/album

调用例子 : /send/album?user_ids=1&id=351318&msg=测试

Released under the MIT License.