I am developing a CRM for one of my client and he needs VoIP integration into his CRM. I've almost achieved what he wanted but there is a small issue left. The API I am using for VoIP integration sends me access_token to my redirect_uri but the issue is it send me that access token in # instead of ? can any one help me to get this # parameter from the uri as I've searched the internet a lot but couldn't find the answer any help would be great. Here is the url I am getting after authorization.
http://localhost:8000/handleresponse#access_token={Authorization_Token}&token_type=Bearer&expires_in=86400&principal={PRINCIPAL}&loa=2
I can get any parameter from the URI but this #access_token is what I need but I can't get that.
I've tried using $request->access_token
but it gives me null. The other logic I've thinking was to get the complete url and convert it into an array and then get the access token but when I get the URL it returns only URL
Anyone knows how to handle this thing.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3dNqBLE
via IFTTT
Aucun commentaire:
Enregistrer un commentaire