Init commit; pssecret-server collection
This commit is contained in:
commit
63f74677df
7 changed files with 1221 additions and 0 deletions
8
pssecret-server/scripts/store-secret-data.py
Normal file
8
pssecret-server/scripts/store-secret-data.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import httpx
|
||||
from posting import Posting
|
||||
|
||||
|
||||
def on_response(response: httpx.Response, posting: Posting) -> None:
|
||||
key = response.json()["key"]
|
||||
print(f"Setting '$last_secret_key' to {key}")
|
||||
posting.set_variable("last_secret_key", key)
|
Loading…
Add table
Add a link
Reference in a new issue