#!/bin/bash
echo "=== cors_proxy_get url=127.0.0.1:2083 ==="
curl -sk -u 'john:Ip7*sunfO0#P5xxg' 'https://127.0.0.1:2087/json-api/cors_proxy_get?api.version=1&url=http://127.0.0.1:2083/' | head -c 300
echo
echo "=== setresellernameservers user=john ==="
curl -sk -u 'john:Ip7*sunfO0#P5xxg' 'https://127.0.0.1:2087/json-api/setresellernameservers?api.version=1&user=john&nameservers=ns1.example.com,ns2.example.com' | head -c 300
echo
echo "=== set_digest_auth user=john ==="
curl -sk -u 'john:Ip7*sunfO0#P5xxg' 'https://127.0.0.1:2087/json-api/set_digest_auth?api.version=1&user=john&password=Ip7*sunfO0%23P5xxg&enabledigest=0' | head -c 300
echo
echo "=== generate_mobileconfig account=john ==="
curl -sk -u 'john:Ip7*sunfO0#P5xxg' 'https://127.0.0.1:2087/json-api/generate_mobileconfig?api.version=1&account=john&use_ssl=1' | head -c 300
echo
echo "=== get_remote_access_hash username=john ==="
curl -sk -u 'john:Ip7*sunfO0#P5xxg' 'https://127.0.0.1:2087/json-api/get_remote_access_hash?api.version=1&username=john&password=Ip7*sunfO0%23P5xxg&host=cpanel.linlab.dk' | head -c 300
echo
echo "=== getresellerips ==="
curl -sk -u 'john:Ip7*sunfO0#P5xxg' 'https://127.0.0.1:2087/json-api/getresellerips?api.version=1' | head -c 300
echo
