Adding Signup Table

This commit is contained in:
stephb9959
2022-02-22 15:02:40 -08:00
parent fb01f895d4
commit d4a13d56bc
2 changed files with 12 additions and 0 deletions

View File

@@ -461,6 +461,14 @@ affecteddevices() {
jq < ${result_file}
}
signup() {
curl ${FLAGS} -X POST "https://${OWPROV}/api/v1/signup?email=stehane.bourque@gmail.com&serialNumber=112233445566" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${token}" \
-H "accept: application/json" > ${result_file}
jq < ${result_file}
}
shopt -s nocasematch
case "$1" in
"login") login; echo "You are logged in..." ; logout ;;
@@ -504,6 +512,7 @@ case "$1" in
"systeminfo") login; systeminfo ; logout;;
"addresscheck") login; addresscheck; logout ;;
"affecteddevices") login; affecteddevices "$2"; logout;;
"signup") login; signup ; logout;;
*) help ;;
esac