Huge refactoring

This commit is contained in:
2026-09-17 00:46:04 +03:00
parent c65a9a91e2
commit 018be076b9
11 changed files with 534 additions and 344 deletions

View File

@@ -0,0 +1,12 @@
#/usr/bin/bash
if [ -n "$GIGA_SECRET" ]; then
curl -k -L -X POST 'https://ngw.devices.sberbank.ru:9443/api/v2/oauth' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
-H "RqUID: $(uuidgen)" \
-H "Authorization: Bearer $GIGA_SECRET" \
--data-urlencode 'scope=GIGACHAT_API_PERS'
else
echo "Please set GIGA_SECRET envvar"
fi