NAV
shell

关于

Serverless 版 API 服务

运行环境: Knative

部署工具: Github Action + func-deploy

源码仓库: https://github.com/serverless-func/func-doc

Issues: https://github.com/serverless-func/func-doc/issues

信用卡账单

招行-每日信用管家邮件

curl -X POST "https://ebill.func.dongfg.com/cmb" -d '{"username": "xxxxx", "password": "yyyyyy", "hour": 24}'

The above command returns JSON structured like this:

{
  "data": [
    {
      "name": "尾号3885 消费 支付宝-xxxxx有限公司",
      "time": "2020-09-21 07:53:41",
      "amount": "8.00"
    },
    {
      "name": "尾号3885 消费 支付宝-xxxx",
      "time": "2020-09-21 11:35:57",
      "amount": "17.00"
    }
  ],
  "msg": "success",
  "timestamp": 1600757374
}

解析邮件获取最近的消费记录

HTTP Request

POST https://ebill.func.dongfg.com/cmb

JSON Body Fields

Field Default Description
username 邮箱用户名
password 邮箱密码
hour 24 解析的邮件范围,可为空,默认 24 小时

招行-月账单 pdf 解析

curl -F 'file=@CreditCardReckoning202010.pdf' "https://ebill.func.dongfg.com/file/cmb"

The above command returns JSON structured like this:

{
  "data": [
    {
      "tradingDate": "2020-09-04",
      "creditDate": "2020-09-05",
      "name": "支付宝-华润万家有限公司",
      "amount": "180.83",
      "tailNumber": "3885",
      "tradingAmount": "180.83(CN)"
    },
    {
      "tradingDate": "2020-09-09",
      "creditDate": "2020-09-10",
      "name": "支付宝-阿斯兰航空服务(上海)有限公",
      "amount": "939.50",
      "tailNumber": "3885",
      "tradingAmount": "939.50(CN)"
    }
    ...
  ],
  "msg": "success",
  "timestamp": 1605681442
}

解析招行月账单 PDF 文件

HTTP Request

POST https://ebill.func.dongfg.com/file/cmb

Multipart Form

Field Default Description
file pdf 文件

Respnse Body Fields

Field Description
tradingDate 交易日
creditDate 记账日
name 交易摘要
amount 人民币金额
tailNumber 卡号末四位
tradingAmount 交易地金额

IPTV

数据来源 https://github.com/BurningC4/Chinese-IPTV 用于加速 m3u 以及 epg 的访问

IPTV LIST

Name Url
CCTV 频道 https://iptv.func.dongfg.com/cctv.m3u
CCTV 节目单 https://iptv.func.dongfg.com/cctv.xml

Favicon 服务

获取网站 icon 信息

curl "https://favicon.func.dongfg.com/fetch?url=https://baidu.com"

The above command returns JSON structured like this:

{
  "data": [
    {
      "url": "https://psstatic.cdn.bcebos.com/video/wiseindex/aa6eef91f8b5b1a33b454c401_1660835115000.png",
      "mimetype": "image/png",
      "extension": "png",
      "width": 0,
      "height": 0,
      "hash": "1d98c55bf95f00b647bd5c73e140d56f9f51005741a30c6ad27f1afc608d9b50"
    },
    {
      "url": "https://www.baidu.com/favicon.ico",
      "mimetype": "image/x-icon",
      "extension": "ico",
      "width": 0,
      "height": 0,
      "hash": "fcd05645b38f5a3abbca1cf4ee774cf74d3457115253169ef456462bba4f4af7"
    }
  ],
  "msg": "success",
  "timestamp": 1700631102
}

获取网站 icon 信息

HTTP Request

GET https://favicon.func.dongfg.com/fetch

Query Parameters

Field Default Description
url 要查询的网站

查看网站 icon

curl "https://favicon.func.dongfg.com/preview?url=https://baidu.com"

会使用 http 状态码 307 跳转到 icon 地址

查看网站 icon

HTTP Request

GET https://favicon.func.dongfg.com/fetch

Query Parameters

Field Default Description
url 要查询的网站

最新版本检查服务

获取 GitHub 最新 Release

curl "https://version.func.dongfg.com/github?repo=dani-garcia/vaultwarden&prerelease=true"

The above command returns JSON structured like this:

{
  "data": "1.30.1",
  "msg": "success",
  "timestamp": 1701490585
}

获取 GitHub 最新 Release

HTTP Request

GET https://version.func.dongfg.com/github

Query Parameters

Field Default Description
repo 要查询的仓库名称
prerelease false 是否包含 prerelease

获取 NPM 包最新版本

curl "https://version.func.dongfg.com/npm?pkg=qs"

The above command returns JSON structured like this:

{
  "data": "6.11.2",
  "msg": "success",
  "timestamp": 1701490585
}

获取 NPM 包最新版本

HTTP Request

GET https://version.func.dongfg.com/npm

Query Parameters

Field Default Description
pkg 要查询的包名

HTTP 错误状态码

正常请求返回 200

Error Code Meaning
400 请求参数有误
500 服务无法正常响应.