Unanswered
Documentation Is Not Good Because Beginner Or Intermiate People Cant Undeerstand, Only More 20 Years Of Exp Can I Understand.. I Checked With Exp People So I Am Saying. I Am Intermiate Guy
@Jake H.
#!/bin/bash
# Get the access key and secret key from the API response
response=$(curl -s -u "antony:antony"
)
access_key=$(echo "$response" | jq -r '.data.credentials.access_key')
secret_key=$(echo "$response" | jq -r '.data.credentials.secret_key')
# Echo the access key and secret key
echo "Access Key: $access_key"
echo "Secret Key: $secret_key"
# Verify the presence of access key and secret key
if [[ -n "$access_key" && -n "$secret_key" ]]; then
echo "Access key and secret key are set."
else
echo "Access key or secret key is missing."
fi
132 Views
0
Answers
one year ago
one year ago