Send ★ to G1FRIEND SALT API

This commit is contained in:
fred 2023-03-11 14:29:27 +01:00
parent 0c55445a0f
commit 1afe72d6ba
5 changed files with 43 additions and 21 deletions

View File

@ -353,6 +353,23 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh
fi
##############################################
# FRIEND ★ &friend=G1PUB&stars=1 // APPNAME=$5 WHAT=$6 OBJ=$7 VAL=$8 MOATS=$9
##############################################
if [[ $APPNAME == "friend" ]]; then
g1friend=${WHAT}
stars=${VAL:-1} // Default 1
MESTAR=$($MY_PATH/../tools/jaklis/jaklis.py -k ~/.zen/tmp/coucou/${MOATS}.secret.key stars -p $g1friend -n $stars)
echo "$HTTPCORS ${MESTAR}"| nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &
end=`date +%s`
echo $APPNAME "(☉_☉ ) ${MESTAR} Execution time was "`expr $end - $start` seconds.
exit 0
fi
##############################################
# GETIPNS
##############################################

View File

@ -159,6 +159,18 @@ GET /?salt=${SALT}&pepper=${PEPPER}&login=${PLAYER}
| `pepper` | `string` | **Required**. Your passphrase two token |
| `login` | `string` | **Required**. Your email one token |
### Définir le niveau ★ accordé à un "g1friend"
```http
GET /?salt=${SALT}&pepper=${PEPPER}&friend=${G1PUB}&stars=${1:5}
```
| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| `salt` | `string` | **Required**. Your passphrase one token |
| `pepper` | `string` | **Required**. Your passphrase two token |
| `friend` | `string` | **Required**. G1PUB token of friend |
| `stars` | `number` | **Required**. Number between 1 to 5 |
### Lire Messagerie Gchange
```http
@ -244,7 +256,7 @@ GET /?player=${PLAYER}&youtube=URLENCODED
### QRCODE (API SandBox)
```http
GET /?qrcode=$G1PUB
GET /?qrcode=${G1PUB}
```
| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |

View File

@ -150,13 +150,6 @@ a {
scanner.addListener('scan', function (content) {
alert(content);
/*
$.ajax({
url: "http://astroport.localhost:1234",
data: "qrcode="+content,
type: 'GET'
});
*/
//
var myU = 'http://astroport.localhost:1234/?qrcode=' + content;
fetchAstroport(myU);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -4,24 +4,24 @@
<head>
<title>_PLAYER_ : _G1VOEU_ ASTROPORT PORTAL : http://astroport.localhost:1234</title>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/favicon.ico">
<link rel="stylesheet" href="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/index_fichiers/demo.css">
<link rel="stylesheet" href="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/index_fichiers/jquery-ui.min.css">
<link rel="icon" type="image/x-icon" href="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/favicon.ico">
<link rel="stylesheet" href="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/index_fichiers/demo.css">
<link rel="stylesheet" href="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/index_fichiers/jquery-ui.min.css">
<script type="text/javascript" src="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/index_fichiers/requestanimationframe.polyfill.js"></script>
<script type="text/javascript" src="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/index_fichiers/requestanimationframe.polyfill.js"></script>
<script type="text/javascript" src="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/index_fichiers/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/index_fichiers/instascan.min.js"></script>
<script type="text/javascript" src="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/index_fichiers/html5-qrcode.min.js"></script>
<script type="text/javascript" src="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/index_fichiers/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/index_fichiers/instascan.min.js"></script>
<script type="text/javascript" src="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/index_fichiers/html5-qrcode.min.js"></script>
<script type="text/javascript" src="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/index_fichiers/jquery-ui.0.min.js"></script>
<script type="text/javascript" src="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/index_fichiers/sphere-hacked.js"></script>
<script type="text/javascript" src="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/index_fichiers/jquery-ui.0.min.js"></script>
<script type="text/javascript" src="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/index_fichiers/sphere-hacked.js"></script>
<script type="text/javascript" src="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/index_fichiers/jquery.earth-3d.js"></script>
<script type="text/javascript" src="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/index_fichiers/jquery.earth-3d.js"></script>
<script type="text/javascript" src="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/index_fichiers/demo.js"></script>
<script type="text/javascript" src="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/index_fichiers/demo.js"></script>
<script type="text/javascript">
@ -96,7 +96,7 @@
<body>
<a target=_blank href="https://astroport.copylaradio.com"><img style="width:50% height:50% position: absolute; top: 0; right: 0; border: 0;" src="/ipfs/QmXZaseYPrQTjg7DasSSejXQFfQLmbV7UKoxWjK4SZNTFe/l0g0.png" alt="Entrez par le Le Claude"></a>
<a target=_blank href="https://astroport.copylaradio.com"><img style="width:50% height:50% position: absolute; top: 0; right: 0; border: 0;" src="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/l0g0.png" alt="Entrez par le Le Claude"></a>
<h1><a target=_blank href="http://astroport.localhost:1234">Astroport Ŋ1</a></h1>
@ -175,7 +175,7 @@
<div id="demo">
<div id="description">
<h3>_PLAYER_ PASS POR</h3>
<h3>_PLAYER_</h3>
<p id="ainfo">
Prenez le contrôle de votre identité en ligne en créant un TW, registre décentralisé de vos références.
En y diffusant vos "informations favorites", cela valide votre identité en ligne et augmente votre réputation,