爱发电 非官方 .NET SDK
介绍
Afdian.Sdk: 爱发电 非官方 .NET SDK
仓库
GitHub
github.com/yiyungent/Afdian.Sdk
Gitee
gitee.com/yiyungent/Afdian.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.Server
基于
Afdian.Sdk
的 非官方 爱发电 在线辅助服务
功能
- 申请爱发电 徽章
- 收到赞助 发送 Telegram 通知 (基于 爱发电 Webhook)
开发
单元测试 Tests
secrets.json
{
"SecretsKeys": {
"AfdianToken": "",
"AfdianUserId": ""
}
}
Donate
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:
Author
Afdian.Sdk © yiyun, Released under the MIT License.
Authored and maintained by yiyun with help from contributors (list).
GitHub @yiyungent Gitee @yiyungent