0 Members and 1 Guest are viewing this topic.
I want to write API function for change user password.I see php files are encrypted so I do not know how start with it.Any help ?
API_IP=API_KEY=API_URL_ACCOUNT="https://${API_IP}:2304/v1/account"API_URL_CHANGEPASS="https://${API_IP}:2304/v1/changepass"USERNAME=NEW_PASSWORD=API_RESPONSE=$(curl -k -s -X POST "$API_URL_CHANGEPASS" \ -F "key=$API_KEY" \ -F "action=update" \ -F "user=$USERNAME" \ -F "pass=$NEW_PASSWORD")if [ -z "$API_RESPONSE" ]; then echo -e "erroR"else echo -e "$API_RESPONSE"fi