Skip to main content

send-message

Send HTTP POST requests with JSON payloads. Use when you need to make API calls, send data to webhooks, or communicate with web services via POST requests.

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

المستودع
warpdotdev/oz_workspace_agent
آخر نشاط في المصدر
٨ فبراير ٢٠٢٦ في ٠٣:٤٩
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٦
التفرعات
٤

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

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.

مستكشف الملفات
2 ملفات

عرض SKILL.md

SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
name
send_message
description
Send HTTP POST requests with JSON payloads. Use when you need to make API calls, send data to webhooks, or communicate with web services via POST requests.
# Send Message Send POST requests with JSON data to any URL. ## Usage Run the script with a URL and JSON data: ```bash python3 scripts/send_post_request.py <url> --data '<json>' ``` ## Examples Basic POST request: ```bash python3 scripts/send_post_request.py https://httpbin.org/post --data '{"message": "hello"}' ``` With custom headers: ```bash python3 scripts/send_post_request.py https://api.example.com/endpoint \ --data '{"key": "value"}' \ --header "Authorization: Bearer $TOKEN" \ --header "X-Custom-Header: custom-value" ``` ## Response The script outputs a JSON object with: - `status_code`: HTTP status code - `headers`: Response headers - `body`: Response body (parsed as JSON if possible) - `error`: Error message (only if request failed)
عرض على GitHub