fix: update history endpoint to correct URL from HTTP Toolkit trace

Correct URL captured via HTTP Toolkit:
- Path: /apd/rah/ (not /apd/rvh/)
- Endpoint: alexa-history-records-v2 (not customer-history-records)
- Parameters: startTime and endTime only

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015a9UxV6q6eG4bpn3JH3PJX
This commit is contained in:
Claude
2026-09-05 09:05:51 +00:00
parent 8651090013
commit 0707c217f2
+1 -1
View File
@@ -1139,7 +1139,7 @@ get_history()
RES=$(${CURL} ${OPTS} -s -b ${COOKIE} -A "${BROWSER}" -H "DNT: 1" -H "Connection: keep-alive" -L -w "%{http_code}" \ RES=$(${CURL} ${OPTS} -s -b ${COOKIE} -A "${BROWSER}" -H "DNT: 1" -H "Connection: keep-alive" -L -w "%{http_code}" \
-H "Content-Type: application/json; charset=UTF-8" -H "anti-csrftoken-a2z: $(cat ${TMP}/.alexa.activity.csrf)" \ -H "Content-Type: application/json; charset=UTF-8" -H "anti-csrftoken-a2z: $(cat ${TMP}/.alexa.activity.csrf)" \
-H "csrf: $(awk "\$0 ~/.${AMAZON}.*csrf[ \\s\\t]+/ {print \$7}" ${COOKIE})" -X GET \ -H "csrf: $(awk "\$0 ~/.${AMAZON}.*csrf[ \\s\\t]+/ {print \$7}" ${COOKIE})" -X GET \
"https://www.${AMAZON}/alexa-privacy/apd/rvh/customer-history-records?startTime=0&endTime=2147483647000&recordType=VOICE_HISTORY&maxRecordSize=50" -o ${TMP}/.alexa.activity.json) "https://www.${AMAZON}/alexa-privacy/apd/rah/alexa-history-records-v2?startTime=0&endTime=2147483647000" -o ${TMP}/.alexa.activity.json)
# try again in case CSRF timed out # try again in case CSRF timed out
if [ $RES -ne 200 ] ; then if [ $RES -ne 200 ] ; then