Added google androidpublisher/v3 api to verify google purchase tokens
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
<a tabindex="-1" href="/" class="linkcaption"><h1>Simple Cloud Notifier</h1></a>
|
||||
|
||||
<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/</code></p>
|
||||
<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>
|
||||
<pre>
|
||||
curl \
|
||||
--data "user_id=${userid}" \
|
||||
@@ -36,14 +36,14 @@ curl \
|
||||
--data "msg_id=$(uuidgen)" \
|
||||
--data "timestamp=$(date +%s)" \
|
||||
--data "channel={channel_name}" \
|
||||
https://scn.blackforestbytes.com/</pre>
|
||||
{{config|baseURL}}/</pre>
|
||||
<p>Most parameters are optional, you can send a message with only a title (default priority and channel will be used)</p>
|
||||
<pre>
|
||||
curl \
|
||||
--data "user_id={userid}" \
|
||||
--data "user_key={userkey}" \
|
||||
--data "title={message_title}" \
|
||||
https://scn.blackforestbytes.com/</pre>
|
||||
{{config|baseURL}}/</pre>
|
||||
|
||||
<a href="/api_more" class="button bordered tertiary" style="float: right; min-width: 100px; text-align: center">More</a>
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<h2>API Requests</h2>
|
||||
<div class="section">
|
||||
<p>
|
||||
To send a new notification you send a <code>POST</code> request to the URL <code>https://scn.blackforestbytes.com/</code>.
|
||||
To send a new notification you send a <code>POST</code> request to the URL <code>{{config|baseURL}}/</code>.
|
||||
All Parameters can either directly be submitted as URL parameters or they can be put into the POST body (either multipart/form-data or JSON).
|
||||
</p>
|
||||
<p>
|
||||
@@ -141,7 +141,7 @@
|
||||
--data "user_key={userkey}" \
|
||||
--data "title={message_title}" \
|
||||
--data "content={message_content}" \
|
||||
https://scn.blackforestbytes.com/</pre>
|
||||
{{config|baseURL}}/</pre>
|
||||
</div>
|
||||
|
||||
<h2>Message Priority</h2>
|
||||
@@ -159,7 +159,7 @@
|
||||
--data "user_key={userkey}" \
|
||||
--data "title={message_title}" \
|
||||
--data "priority={0|1|2}" \
|
||||
https://scn.blackforestbytes.com/s</pre>
|
||||
{{config|baseURL}}/</pre>
|
||||
</div>
|
||||
|
||||
<h2>Channels</h2>
|
||||
@@ -174,7 +174,7 @@
|
||||
--data "user_key={userkey}" \
|
||||
--data "title={message_title}" \
|
||||
--data "channel={my_channel}" \
|
||||
https://scn.blackforestbytes.com/s</pre>
|
||||
{{config|baseURL}}/</pre>
|
||||
</div>
|
||||
|
||||
<h2>Message Uniqueness</h2>
|
||||
@@ -194,7 +194,7 @@
|
||||
--data "user_key={userkey}" \
|
||||
--data "title={message_title}" \
|
||||
--data "msg_id={message_id}" \
|
||||
https://scn.blackforestbytes.com/</pre>
|
||||
{{config|baseURL}}/</pre>
|
||||
<p>
|
||||
Be aware that the server only saves send messages for a short amount of time. Because of that you can only use this to prevent duplicates in a short time-frame, older messages with the same ID are probably already deleted and the message will be send again.
|
||||
</p>
|
||||
@@ -213,7 +213,7 @@
|
||||
--data "user_key={userkey}" \
|
||||
--data "title={message_title}" \
|
||||
--data "timestamp={unix_timestamp}" \
|
||||
https://scn.blackforestbytes.com/</pre>
|
||||
{{config|baseURL}}/</pre>
|
||||
</div>
|
||||
|
||||
<h2>Bash script example</h2>
|
||||
|
||||
Reference in New Issue
Block a user