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.
6 lines
356 B
6 lines
356 B
curl -k -X POST -d "client_id=user&client_secret=pssssssssssssssss&grant_type=client_credentials" https://apiexec1.swarm:8081/token > test.token
|
|
token=$(cat test.token | cut -d':' -f2 | cut -d',' -f1 | cut -d'"' -f2)
|
|
echo $token
|
|
curl -k -X POST https://apiexec1.swarm:8081/helloworld \
|
|
-H "Authorization: Bearer $token" \
|
|
-H "Accept: application/json"
|
|
|