Skip to main content

معلومات المصدر

المستودع
ThinkfleetAI/thinkfleet-engine
آخر نشاط في المصدر
١ فبراير ٢٠٢٦ في ١٦:٢١
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٠
التفرعات
٠

خيارات التثبيت

يُحدَّد 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