1 Star 1 Fork 0

Indexea / indexea-rust-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
MessageApi.md 4.40 KB
一键复制 编辑 原始数据 按行查看 历史
Indexea 提交于 2023-09-24 13:05 . update

\MessageApi

All URIs are relative to https://api.indexea.com/v1

Method HTTP request Description
message_period_delete DELETE /accounts/message 删除消息
message_period_feedback POST /accounts/feedback 反馈意见
message_period_list GET /accounts/message 获取我相关的消息信息,包括未读消息数量、最新消息等
message_period_read PATCH /accounts/message 标识消息为已读
message_period_send POST /accounts/message 发送消息

message_period_delete

bool message_period_delete(id) 删除消息

删除消息

Parameters

Name Type Description Required Notes
id i32 消息编号 [required]

Return type

bool

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

message_period_feedback

bool message_period_feedback(content, r#type) 反馈意见

Parameters

Name Type Description Required Notes
content String [required]
r#type String [required] [default to general]

Return type

bool

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

message_period_list

crate::models::Messages message_period_list(scope, size, from) 获取我相关的消息信息,包括未读消息数量、最新消息等

Parameters

Name Type Description Required Notes
scope String [required] [default to unread]
size i32 消息数量 [required] [default to 10]
from Option<i32> 用于翻页的起始位置 [default to 0]

Return type

crate::models::Messages

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

message_period_read

crate::models::Messages message_period_read(id) 标识消息为已读

标识消息为已读

Parameters

Name Type Description Required Notes
id String 消息编号,多个消息使用逗号隔开 [required]

Return type

crate::models::Messages

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

message_period_send

crate::models::Message message_period_send(receiver, msg) 发送消息

发送站内消息给某人

Parameters

Name Type Description Required Notes
receiver i32 [required]
msg String [required]

Return type

crate::models::Message

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

1
https://gitee.com/indexea/indexea-rust-sdk.git
git@gitee.com:indexea/indexea-rust-sdk.git
indexea
indexea-rust-sdk
indexea-rust-sdk
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891