You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
622 B
26 lines
622 B
2 years ago
|
#!/usr/bin/env python3
|
||
|
|
||
|
import os
|
||
|
import json
|
||
|
import sys
|
||
|
def main():
|
||
|
activation_id = os.environ.get('__OW_ACTIVATION_ID')
|
||
|
params = json.loads(sys.argv[1])
|
||
|
number=params["number"]
|
||
|
res = number + 2
|
||
|
print(json.dumps({ "activation_id": str(activation_id),
|
||
|
"number": number,
|
||
|
"result": res,
|
||
|
"message":"Hello yayy"
|
||
|
}))
|
||
|
|
||
|
return({"activation_id": str(activation_id),
|
||
|
"number": number,
|
||
|
"result": res,
|
||
|
"message":"Hello yayy"
|
||
|
})
|
||
|
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
main()
|