来源信息
- 仓库
- ThinkfleetAI/thinkfleet-engine
- 最近来源活动
- 2026年2月1日 16:21
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 0
- Forks
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- sendgrid
- description
- Send emails and manage contacts via the SendGrid API.
- metadata
- {"thinkfleetbot":{"emoji":"📤","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# SendGrid
Send transactional and marketing emails.
## Environment Variables
- `SENDGRID_API_KEY` - API key
## Send email
```bash
curl -s -X POST -H "Authorization: Bearer $SENDGRID_API_KEY" \
-H "Content-Type: application/json" \
"https://api.sendgrid.com/v3/mail/send" \
-d '{"personalizations":[{"to":[{"email":"recipient@example.com"}]}],"from":{"email":"sender@example.com"},"subject":"Hello","content":[{"type":"text/plain","value":"Message body"}]}'
```
## List contacts
```bash
curl -s -H "Authorization: Bearer $SENDGRID_API_KEY" \
"https://api.sendgrid.com/v3/marketing/contacts?page_size=10" | jq '.result[] | {id, email, first_name, last_name}'
```
## Get email stats
```bash
curl -s -H "Authorization: Bearer $SENDGRID_API_KEY" \
"https://api.sendgrid.com/v3/stats?start_date=2024-01-01&limit=7" | jq '.[] | {date, stats: .stats[0].metrics | {requests, delivered, opens, clicks}}'
```
## Notes
- Always confirm before sending emails.
在 GitHub 查看