🍰 爱发电 非官方 .NET SDK
Afdian.Sdk: 爱发电 非官方 .NET SDK
dotnet add package Afdian.Sdk
using Afdian.Sdk;
AfdianClient afdianClient = new AfdianClient(userId: "", token: "");
string jsonStr1 = afdianClient.Ping();
string jsonStr2 = afdianClient.QueryOrder(page: 1);
string jsonStr3 = afdianClient.QuerySponsor(page: 1);
var jsonModel1 = afdianClient.QueryOrderModel(page: 1);
var jsonModel2 = afdianClient.QuerySponsorModel(page: 1);
// ...还有一些API, 例如: QueryOrderAsync()
基于
Afdian.Sdk
的 非官方 爱发电 在线辅助服务
- 申请爱发电 徽章
- 收到赞助 发送 Telegram 通知 (基于 爱发电 Webhook)
Docker Compose (推荐)
# 注意: 一定要下载 配置文件: appsettings.json
wget https://raw.githubusercontent.com/yiyungent/Afdian.Sdk/main/src/Afdian.Server/appsettings.json
# 仓库根目录 docker-compose.yml
wget https://raw.githubusercontent.com/yiyungent/Afdian.Sdk/main/docker-compose.yml
docker-compose up -d
secrets.json
{
"SecretsKeys": {
"AfdianToken": "",
"AfdianUserId": ""
}
}
Afdian.Sdk is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
We accept donations through these channels:
Afdian.Sdk © yiyun, Released under the MIT License.
Authored and maintained by yiyun with help from contributors (list).
GitHub @yiyungent Gitee @yiyungent