change URL to simplecloudnotifier.de
This commit is contained in:
parent
4210af5680
commit
686f89f75d
@ -40,7 +40,7 @@ func NewRouter(app *logic.Application) *Router {
|
|||||||
// @title SimpleCloudNotifier API
|
// @title SimpleCloudNotifier API
|
||||||
// @version 2.0
|
// @version 2.0
|
||||||
// @description API for SCN
|
// @description API for SCN
|
||||||
// @host scn.blackforestbytes.com
|
// @host simplecloudnotifier.de
|
||||||
//
|
//
|
||||||
// @tag.name External
|
// @tag.name External
|
||||||
// @tag.name API-v1
|
// @tag.name API-v1
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"contact": {},
|
"contact": {},
|
||||||
"version": "2.0"
|
"version": "2.0"
|
||||||
},
|
},
|
||||||
"host": "scn.blackforestbytes.com",
|
"host": "simplecloudnotifier.de",
|
||||||
"basePath": "/",
|
"basePath": "/",
|
||||||
"paths": {
|
"paths": {
|
||||||
"/": {
|
"/": {
|
||||||
|
@ -681,7 +681,7 @@ definitions:
|
|||||||
username:
|
username:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
host: scn.blackforestbytes.com
|
host: simplecloudnotifier.de
|
||||||
info:
|
info:
|
||||||
contact: {}
|
contact: {}
|
||||||
description: API for SCN
|
description: API for SCN
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/env bash</span>
|
<div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/env bash</span>
|
||||||
|
|
||||||
<span class="c1">#</span>
|
<span class="c1">#</span>
|
||||||
<span class="c1"># Wrapper around SCN ( https://scn.blackforestbytes.com/ )</span>
|
<span class="c1"># Wrapper around SCN ( https://simplecloudnotifier.de/ )</span>
|
||||||
<span class="c1"># ========================================================</span>
|
<span class="c1"># ======================================================</span>
|
||||||
<span class="c1">#</span>
|
<span class="c1">#</span>
|
||||||
<span class="c1"># ./scn_send [@channel] title [content] [priority]</span>
|
<span class="c1"># ./scn_send [@channel] title [content] [priority]</span>
|
||||||
<span class="c1">#</span>
|
<span class="c1">#</span>
|
||||||
@ -98,7 +98,7 @@ usage<span class="o">()</span><span class="w"> </span><span class="o">{</span>
|
|||||||
<span class="w"> </span>--data<span class="w"> </span><span class="s2">"msg_id=</span><span class="nv">$usr_msg_id</span><span class="s2">"</span><span class="w"> </span><span class="se">\</span>
|
<span class="w"> </span>--data<span class="w"> </span><span class="s2">"msg_id=</span><span class="nv">$usr_msg_id</span><span class="s2">"</span><span class="w"> </span><span class="se">\</span>
|
||||||
<span class="w"> </span>--data<span class="w"> </span><span class="s2">"channel=</span><span class="nv">$channel</span><span class="s2">"</span><span class="w"> </span><span class="se">\</span>
|
<span class="w"> </span>--data<span class="w"> </span><span class="s2">"channel=</span><span class="nv">$channel</span><span class="s2">"</span><span class="w"> </span><span class="se">\</span>
|
||||||
<span class="w"> </span>--data<span class="w"> </span><span class="s2">"sender_name=</span><span class="nv">$sender</span><span class="s2">"</span><span class="w"> </span><span class="se">\</span>
|
<span class="w"> </span>--data<span class="w"> </span><span class="s2">"sender_name=</span><span class="nv">$sender</span><span class="s2">"</span><span class="w"> </span><span class="se">\</span>
|
||||||
<span class="w"> </span><span class="s2">"https://scn.blackforestbytes.com/"</span><span class="w"> </span><span class="k">)</span>
|
<span class="w"> </span><span class="s2">"https://simplecloudnotifier.de/"</span><span class="w"> </span><span class="k">)</span>
|
||||||
|
|
||||||
<span class="w"> </span><span class="nv">curlout</span><span class="o">=</span><span class="s2">"</span><span class="k">$(</span>cat<span class="w"> </span><span class="s2">"</span><span class="nv">$outf</span><span class="s2">"</span><span class="k">)</span><span class="s2">"</span>
|
<span class="w"> </span><span class="nv">curlout</span><span class="o">=</span><span class="s2">"</span><span class="k">$(</span>cat<span class="w"> </span><span class="s2">"</span><span class="nv">$outf</span><span class="s2">"</span><span class="k">)</span><span class="s2">"</span>
|
||||||
<span class="w"> </span>rm<span class="w"> </span><span class="s2">"</span><span class="nv">$outf</span><span class="s2">"</span>
|
<span class="w"> </span>rm<span class="w"> </span><span class="s2">"</span><span class="nv">$outf</span><span class="s2">"</span>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# Wrapper around SCN ( https://scn.blackforestbytes.com/ )
|
# Wrapper around SCN ( https://simplecloudnotifier.de/ )
|
||||||
# ========================================================
|
# ======================================================
|
||||||
#
|
#
|
||||||
# ./scn_send [@channel] title [content] [priority]
|
# ./scn_send [@channel] title [content] [priority]
|
||||||
#
|
#
|
||||||
@ -98,7 +98,7 @@ while true ; do
|
|||||||
--data "msg_id=$usr_msg_id" \
|
--data "msg_id=$usr_msg_id" \
|
||||||
--data "channel=$channel" \
|
--data "channel=$channel" \
|
||||||
--data "sender_name=$sender" \
|
--data "sender_name=$sender" \
|
||||||
"https://scn.blackforestbytes.com/" )
|
"https://simplecloudnotifier.de/" )
|
||||||
|
|
||||||
curlout="$(cat "$outf")"
|
curlout="$(cat "$outf")"
|
||||||
rm "$outf"
|
rm "$outf"
|
||||||
|
Loading…
Reference in New Issue
Block a user