mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-11-01 10:27:56 +00:00
update user profile
This commit is contained in:
@@ -31,11 +31,12 @@ echo "Create anonymous consent by phone 2: $RESULT"
|
||||
echo "Creating user."
|
||||
RESULT=`curl -s $DATABUNKER/v1/user \
|
||||
-H "X-Bunker-Token: $XTOKEN" -H "Content-Type: application/json" \
|
||||
-d '{"fname":"Test","lname":"Account","email":"test@paranoidguy.com","phone":"4444"}'`
|
||||
-d '{"fname":"Test","lname":"Account","email":"test@paranoidguy.com","phone":"4444","passportid":"123456789","status":"prospect"}'`
|
||||
STATUS=`echo $RESULT | jq ".status" | tr -d '"'`
|
||||
if [ "$STATUS" = "error" ]; then
|
||||
echo "Error to create user, trying to lookup by email."
|
||||
echo "Error to create user, trying to lookup by email. Result: $RESULT"
|
||||
RESULT=`curl -s $DATABUNKER/v1/user/email/test@paranoidguy.com -H "X-Bunker-Token: $XTOKEN"`
|
||||
echo "Result: $RESULT"
|
||||
STATUS=`echo $RESULT | jq ".status" | tr -d '"'`
|
||||
fi
|
||||
if [ "$STATUS" = "error" ]; then
|
||||
|
||||
Reference in New Issue
Block a user