[GH-ISSUE #74] How to manually find Google token? #69

Closed
opened 2026-02-25 20:34:35 +03:00 by kerem · 2 comments
Owner

Originally created by @ghost on GitHub (Oct 29, 2020).
Original GitHub issue: https://github.com/B16f00t/whapa/issues/74

Hi, I'm trying to figure out how to find the Google token (Google Account token) without providing auth (already logged in on the browser).

Which request contains the token? Or is it on the cookies?

Originally created by @ghost on GitHub (Oct 29, 2020). Original GitHub issue: https://github.com/B16f00t/whapa/issues/74 Hi, I'm trying to figure out how to find the Google token (Google Account token) without providing auth (already logged in on the browser). Which request contains the token? Or is it on the cookies?
kerem closed this issue 2026-02-25 20:34:35 +03:00
Author
Owner

@B16f00t commented on GitHub (Oct 29, 2020):

Whapagodri does not store the token, but uses it in the request within the header.

header = {'Authorization': 'Bearer ' + bearer, 'User-Agent': 'WhatsApp/2.19.244 Android/9.0 Device/Whapa'}
url_data = "https://backup.googleapis.com/v1/clients/wa/backups/{}".format(celnumbr)
request_data = requests.get(url_data, headers=header)
<!-- gh-comment-id:718713054 --> @B16f00t commented on GitHub (Oct 29, 2020): Whapagodri does not store the token, but uses it in the request within the header. header = {'Authorization': 'Bearer ' + bearer, 'User-Agent': 'WhatsApp/2.19.244 Android/9.0 Device/Whapa'} url_data = "https://backup.googleapis.com/v1/clients/wa/backups/{}".format(celnumbr) request_data = requests.get(url_data, headers=header)
Author
Owner

@dev-point-team commented on GitHub (Nov 1, 2020):

create oauth authorization from google console, it will be like

https://accounts.google.com/o/oauth2/v2/auth?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT&response_type=code&scope=https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/drive.file

then you will get a access token for log-in user, pass to script where @B16f00t refer

<!-- gh-comment-id:720053207 --> @dev-point-team commented on GitHub (Nov 1, 2020): create oauth authorization from google console, it will be like https://accounts.google.com/o/oauth2/v2/auth?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT&response_type=code&scope=https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/drive.file then you will get a access token for log-in user, pass to script where @B16f00t refer
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whapa#69
No description provided.