diff --git a/API/SALT.sh b/API/SALT.sh index 3ff4bd75..5e330d52 100755 --- a/API/SALT.sh +++ b/API/SALT.sh @@ -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 ############################################## diff --git a/README.md b/README.md index 5e0f8750..fbfdfef8 100644 --- a/README.md +++ b/README.md @@ -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 | | :-------- | :------- | :-------------------------------- | diff --git a/www/G1PalPay/index.html b/www/G1PalPay/index.html index 9ab16ab5..799864b6 100644 --- a/www/G1PalPay/index.html +++ b/www/G1PalPay/index.html @@ -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); diff --git a/www/PasseportTerre/favicon.ico b/www/PasseportTerre/favicon.ico index c65df304..e0128c6b 100644 Binary files a/www/PasseportTerre/favicon.ico and b/www/PasseportTerre/favicon.ico differ diff --git a/www/PasseportTerre/index.html b/www/PasseportTerre/index.html index a1353a1c..66520337 100644 --- a/www/PasseportTerre/index.html +++ b/www/PasseportTerre/index.html @@ -4,24 +4,24 @@ _PLAYER_ : _G1VOEU_ ASTROPORT PORTAL : http://astroport.localhost:1234 - - - + + + - + - - - + + + - - + + - + - +