{"id":13498734,"url":"https://github.com/SunsetMkt/kizuna-ai-calendar-api","last_synced_at":"2025-03-29T01:32:33.741Z","repository":{"id":103632002,"uuid":"464699342","full_name":"SunsetMkt/kizuna-ai-calendar-api","owner":"SunsetMkt","description":"绊爱日历项目后端Serverless API+OSS部署方案","archived":false,"fork":false,"pushed_at":"2022-08-13T16:33:34.000Z","size":27,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-06T01:18:46.862Z","etag":null,"topics":["kizuna-ai","onedrive-vercel-index","php","vercel","vercel-php"],"latest_commit_sha":null,"homepage":"https://lwd-temp.github.io/kizuna-ai-calendar-api/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SunsetMkt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-03-01T01:14:12.000Z","updated_at":"2024-08-06T01:18:46.865Z","dependencies_parsed_at":"2023-05-24T02:30:10.576Z","dependency_job_id":null,"html_url":"https://github.com/SunsetMkt/kizuna-ai-calendar-api","commit_stats":null,"previous_names":["sunsetmkt/kizuna-ai-calendar-api","lwd-temp/kizuna-ai-calendar-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunsetMkt%2Fkizuna-ai-calendar-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunsetMkt%2Fkizuna-ai-calendar-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunsetMkt%2Fkizuna-ai-calendar-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunsetMkt%2Fkizuna-ai-calendar-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SunsetMkt","download_url":"https://codeload.github.com/SunsetMkt/kizuna-ai-calendar-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222445348,"owners_count":16985814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kizuna-ai","onedrive-vercel-index","php","vercel","vercel-php"],"created_at":"2024-07-31T21:00:41.856Z","updated_at":"2024-10-31T16:30:45.650Z","avatar_url":"https://github.com/SunsetMkt.png","language":"PHP","funding_links":[],"categories":["应用场景"],"sub_categories":["其它"],"readme":"# 已弃用\n此项目已不再被认为是有作用的，并由以下项目代替。\n\nhttps://github.com/SunsetMkt/KizunaAI-Web\n\n# kizuna-ai-calendar-api\n\n绊爱日历项目后端Serverless API+OSS部署方案\n\n基于哔哩哔哩用户[灰暗江原](https://space.bilibili.com/63045280)提供的实现思路、源码和视频资源。\n\n## Serverless API部署\n\nVercel提供部署无服务器API的服务，使用项目[vercel-php](https://github.com/juicyfx/vercel-php)部署php。\n\n调用举例：\n\n`/kizunaai.php?id=63045280\u0026date=02-28`\n\n`/kizunaai.php?id=63045280\u0026date=【两位数月】-【两位数日】`\n\n如果您可以在自己的服务器上直接使用php，请直接使用`kizunaai.php`，并修改去除OSS相关部分代码。\n\n## OSS部署\n\n[onedrive-vercel-index](https://github.com/spencerwooo/onedrive-vercel-index)是可以部署在Vercel上的OneDrive/SharePoint文件索引和直链获取工具，通过在OneDrive上传相同文件结构视频资源的方法与API配合。\n\n它的直链获取API格式是：\n\n`/api?path=/KizunaAI/02-28/1.mp4\u0026raw=true`\n\n`/api?path=【从根目录“/”开始的文件路径】\u0026raw=true`\n\n如果您可以在自己的服务器上直接使用HTTP服务器，请直接提供整个`KizunaAI`文件夹。\n\n## 视频资源结构\n\n`/path-to/KizunaAI/MM-DD/*.mp4`\n\n其中MM-DD需要包括每一日，02-29在API中被认为是02-28，不需要单独创建文件夹。\n\n## 视频资源\n\n由@灰暗江原提供，包括符合上述文件结构的363日早安视频（缺失03-18，09-18，自行补全）\n\n```\nhttps://pan.baidu.com/s/1bG9qL4SXUzd1eTk4dmV6Og \n提取码：foqj\n```\n\n## 演示API和OSS\n\n目前，Serverless API部署在`https://api.lwd-temp.top/api/kizunaai.php`\n\nOSS部署在`https://drive.lwd-temp.top/KizunaAI`（浏览器查看），直链获取`https://drive.lwd-temp.top/api?path=/KizunaAI/【MM】-【DD】/【*.mp4】\u0026raw=true`。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSunsetMkt%2Fkizuna-ai-calendar-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSunsetMkt%2Fkizuna-ai-calendar-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSunsetMkt%2Fkizuna-ai-calendar-api/lists"}