- Joined
- Apr 29, 2021
- Messages
- 4
- Reaction score
- 0
Hello! My name is Donovan. I’m using the Yandex OAuth API to check if they have an email at @mail.(my domain) through Yandex360.
The problem: I need to extract the token from this URL.
https://mail.(my domain)/auth/server.php#access_token=TOKENGOESHERE&token_type=TYPE&expires_in=EXPIRATION
I want to get TOKENGOESHERE from the URL to connect to the Yandex API to check the email on the account. How can I get TOKENGOESHERE from the URL? (I originally asked this question on a PHP fourm and they said I had to know JavaScript, so I'm asking here.)
EDIT--Changed PHP to JavaScript.
The problem: I need to extract the token from this URL.
https://mail.(my domain)/auth/server.php#access_token=TOKENGOESHERE&token_type=TYPE&expires_in=EXPIRATION
I want to get TOKENGOESHERE from the URL to connect to the Yandex API to check the email on the account. How can I get TOKENGOESHERE from the URL? (I originally asked this question on a PHP fourm and they said I had to know JavaScript, so I'm asking here.)
EDIT--Changed PHP to JavaScript.
Last edited: