2 changed files with 6 additions and 6 deletions
@ -1,6 +1,6 @@ |
|||||||
user='christophe.scaya@gmail.com' |
user='USER' |
||||||
password='92@!Z&KYxt8shT' |
password='PASS' |
||||||
envoy_serial='482330092358' |
envoy_serial='SERIAL' |
||||||
session_id=$(curl -X POST https://enlighten.enphaseenergy.com/login/login.json? -F "user[email]=$user" -F "user[password]=$password" | jq -r ".session_id") |
session_id=$(curl -X POST https://enlighten.enphaseenergy.com/login/login.json? -F "user[email]=$user" -F "user[password]=$password" | jq -r ".session_id") |
||||||
web_token=$(curl -X POST https://entrez.enphaseenergy.com/tokens -H "Content-Type: application/json" -d "{\"session_id\": \"$session_id\", \"serial_num\": \"$envoy_serial\", \"username\": \"$user\"}") |
web_token=$(curl -X POST https://entrez.enphaseenergy.com/tokens -H "Content-Type: application/json" -d "{\"session_id\": \"$session_id\", \"serial_num\": \"$envoy_serial\", \"username\": \"$user\"}") |
||||||
echo $web_token |
echo $web_token |
||||||
|
|||||||
Loading…
Reference in new issue