SimpleCloudNotifier/web/index_api.php

39 lines
1.8 KiB
PHP
Raw Normal View History

2018-09-22 18:00:00 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="/css/mini-default.min.css">
2018-09-27 02:38:46 +02:00
<title>Simple Cloud Notifications - API</title>
2018-09-22 19:40:50 +02:00
<!--<link rel="stylesheet" href="/css/mini-nord.min.css">-->
<!--<link rel="stylesheet" href="/css/mini-dark.min.css">-->
2018-09-22 18:00:00 +02:00
<link rel="stylesheet" href="/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<form id="mainpnl">
<a href="https://play.google.com/store/apps/details?id=com.blackforestbytes.simplecloudnotifier" class="button bordered" id="tl_link"><span class="icn-google-play"></span></a>
<a href="/index.php" class="button bordered" id="tr_link">Send</a>
<h1>Simple Cloud Notifier</h1>
<p>Get your user-id and user-key from the app and send notifications to your phone by performing a POST request against <code>https://simplecloudnotifier.blackforestbytes.com/send.php</code></p>
2018-09-27 02:38:46 +02:00
<pre>curl \
--data "user_id={userid}" \
--data "user_key={userkey}" \
2018-10-20 14:57:05 +02:00
--data "priority={0|1|2}" \
2018-09-27 02:38:46 +02:00
--data "title={message_title}" \
--data "content={message_content}" \
https://scn.blackforestbytes.com/send.php</pre>
2018-10-20 14:57:05 +02:00
<p>The <code>content</code> and <code>priority</code> parameters are optional, you can also send message with only a title and the default priority</p>
2018-09-27 02:38:46 +02:00
<pre>curl \
--data "user_id={userid}" \
--data "user_key={userkey}" \
--data "title={message_title}" \
https://scn.blackforestbytes.com/send.php</pre>
2018-09-22 18:00:00 +02:00
</form>
<div id="copyinfo">
<a href="https://www.blackforestbytes.com">&#169; blackforestbytes</a>
</div>
</body>
</html>