Skip to content

yiyungent/Afdian.Sdk

Repository files navigation

Afdian.Sdk

🍰 爱发电 非官方 .NET SDK

repo size LICENSE nuget downloads 爱发电 QQ Group

介绍

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.Server

基于 Afdian.Sdk 的 非官方 爱发电 在线辅助服务

功能

Docker 快速运行

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

开发

单元测试 Tests

secrets.json

{
  "SecretsKeys": {
    "AfdianToken": "",
    "AfdianUserId": ""
  }
}

Related Projects

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