跳到主要内容
David Loor
关于服务项目博客联系方式
←返回博客

#api

带有 api 标签的文章共 3 篇。

找到 3 篇文章
2025-11-25
8 min read

我选择使用 Server-Sent Events 而非 WebSockets 来流式传输 AI 响应的原因

在构建实时功能时,开发者通常默认选择 WebSockets。但对于流式传输 AI 响应,Server-Sent Events 结果证明是更好的选择。以下是我在 Kindle ChatGPT 项目中实现 SSE 时学到的经验。

web-developmentai-toolsjavascriptnext-js
2025-11-23
12 min read

Building Secure APIs with Token Authentication and OpenAPI

I built an API token system and OpenAPI docs for my project. Here's what I learned about secure token generation, authentication, and making it work with ChatGPT and other tools.

DevelopmentAPI+1
2025-11-03
5 min read

Putting my step count on my website

I built a public step counter using Google Fit API and Cloudflare Workers. It shows my daily steps, weekly totals, and streak on my website. Here's how I did it and why public accountability works.

web-developmentapi-integration+1

保持更新

将最新文章和见解发送到您的收件箱。

不发送垃圾邮件,可随时退订。

归档
  • 我选择使用 Server-Sent Events 而非 WebSockets 来流式传输 AI 响应的原因
  • Building Secure APIs with Token Authentication and OpenAPI
  • Putting my step count on my website
David Loor

AI、云和 Web 解决方案架构师

关于服务项目博客书架

© 2026 David Loor。保留所有权利。

david@davidloor.com