inital
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to request user organizations with bearer token
|
||||
# Usage: ./request_organizations.sh <bearer_token>
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: $0 <bearer_token>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TOKEN=$1
|
||||
|
||||
curl -s -H "Authorization: Bearer $TOKEN" http://127.0.0.1:8888/api/v1/users/me/organizations
|
||||
Reference in New Issue
Block a user