2022-11-18 21:25:40 +01:00
<!DOCTYPE html>
< html lang = "en" >
< head >
2022-11-26 16:30:30 +01:00
{{template|header.[theme].html}}
2022-11-18 21:25:40 +01:00
< / head >
< body >
< div id = "copyinfo" >
< a tabindex = "-1" href = "https://www.blackforestbytes.com" > © blackforestbytes< / a >
< a tabindex = "-1" href = "https://www.mikescher.com" > made by Mike Schwö rer< / a >
< / div >
2022-11-26 16:30:30 +01:00
{{template|theme_switch.[theme].html}}
2022-11-21 22:52:44 +01:00
2022-11-26 16:30:30 +01:00
< div id = "mainpnl" >
< a tabindex = "-1" href = "/documentation/swagger" class = "button bordered edge-btn" id = "tl_linkDocs" > < span class = "icn-openapi" > < / span > < span class = "tl_btntxt" > API Documentation< / span > < / a >
< a tabindex = "-1" href = "/" class = "button bordered edge-btn" id = "tr_link" > Send< / a >
2022-11-18 21:25:40 +01:00
< a tabindex = "-1" href = "/" class = "linkcaption" > < h1 > Simple Cloud Notifier< / h1 > < / a >
2022-11-25 22:42:21 +01:00
< p > Get your user-id and user-key from the android or iOS app.< br / > And send notifications to your phone by performing a POST request against < code > {{config|baseURL}}/< / code > from anywhere< / p >
2022-11-21 22:52:44 +01:00
< pre >
curl \
--data "user_id=${userid}" \
--data "user_key=${userkey}" \
--data "title=${message_title}" \
--data "content=${message_body}" \
--data "priority=${0|1|2}" \
--data "msg_id=$(uuidgen)" \
--data "timestamp=$(date +%s)" \
--data "channel={channel_name}" \
2022-11-25 22:42:21 +01:00
{{config|baseURL}}/< / pre >
2022-11-21 22:52:44 +01:00
< p > Most parameters are optional, you can send a message with only a title (default priority and channel will be used)< / p >
< pre >
curl \
2022-11-18 21:25:40 +01:00
--data "user_id={userid}" \
--data "user_key={userkey}" \
--data "title={message_title}" \
2022-11-25 22:42:21 +01:00
{{config|baseURL}}/< / pre >
2022-11-18 21:25:40 +01:00
< a href = "/api_more" class = "button bordered tertiary" style = "float: right; min-width: 100px; text-align: center" > More< / a >
< / div >
< / body >
< / html >