웹훅 URL에 시크릿이 포함되어 있어 인증을 처리합니다:
https://pushbird.app/pb_your_secret_here
이 URL을 가진 사람은 누구나 기기에 알림을 보낼 수 있습니다. 안전하게 보관하세요. 앱에서 언제든 시크릿을 재생성할 수 있습니다.
curl -X POST https://pushbird.app/pb_your_secret \ -H 'Content-Type: application/json' \ -d '{ "title": "Build Passed", "subtitle": "CI/CD", "message": "All 42 tests green" }'
$ch = curl_init('https://pushbird.app/pb_your_secret'); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_HTTPHEADER => ['Content-Type: application/json'], CURLOPT_POSTFIELDS => json_encode([ 'title' => 'Build Passed', 'message' => 'All 42 tests green' ]) ]); curl_exec($ch);
import requests requests.post("https://pushbird.app/pb_your_secret", json={ "title": "Build Passed", "subtitle": "CI/CD", "message": "All 42 tests green" })
await fetch("https://pushbird.app/pb_your_secret", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ title: "Build Passed", subtitle: "CI/CD", message: "All 42 tests green" }) });
body := strings.NewReader(`{"title":"Build Passed","subtitle":"CI/CD","message":"All 42 tests green"}`) req, _ := http.NewRequest("POST", "https://pushbird.app/pb_your_secret", body) req.Header.Set("Content-Type", "application/json") http.DefaultClient.Do(req)
본문 전체가 알림 메시지가 됩니다.
curl -X POST https://pushbird.app/pb_your_secret \ -d 'Hello from PushBird!'
file_get_contents('https://pushbird.app/pb_your_secret', false, stream_context_create(['http' => [ 'method' => 'POST', 'content' => 'Hello from PushBird!' ]]));
requests.post("https://pushbird.app/pb_your_secret", data="Hello from PushBird!")
await fetch("https://pushbird.app/pb_your_secret", { method: "POST", body: "Hello from PushBird!" });
http.Post("https://pushbird.app/pb_your_secret", "text/plain", strings.NewReader("Hello from PushBird!"))
브라우저, 북마크 등 URL을 열 수 있는 도구에서 사용 가능.
curl 'https://pushbird.app/pb_your_secret?title=Alert&message=Check+the+logs'
file_get_contents('https://pushbird.app/pb_your_secret?title=Alert&message=Check+logs');
requests.get("https://pushbird.app/pb_your_secret", params={"title": "Alert", "message": "Check logs"})
await fetch("https://pushbird.app/pb_your_secret?title=Alert&message=Check+logs");
http.Get("https://pushbird.app/pb_your_secret?title=Alert&message=Check+logs")
| Parameter | Type | Description |
|---|---|---|
title | String | 알림의 첫 번째 줄 |
subtitle | String | 제목 아래 두 번째 줄 |
message | String | 본문 텍스트 |
open_url | String | 탭하면 이 URL을 엽니다 |
image_url | String | 알림에 이미지 첨부 |
interruption-level | String | passive, active (기본), time-sensitive |
{"ok": true}
{"error": "message or title is required"}