Welcome Guest, Not a member yet? Register   Sign In
Question mark in redirect url - Google Access Token
#1

Google via its API, to manage the Access Token or Authorization code for updating the token itself, redirects to a url with an intermediate code via composition:
Code:
?code=a/Lor3mIpsumD0l0r-FUCZBl4hDas47Yhd0l39hFnSITbn_GmmDh3w

How to set the Route.php file to read the contents of the variable “code”?

PHP Code:
$routes->get('callback/(:any)', .......); 

doesn't work, returns 404.

Any suggestions?
Reply
#2

You need to get the code from $this->request->getGet("code") in the "/" Home controller
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply
#3

Thank you very much, I didn't know what to try anymore  Big Grin
Reply




Theme © iAndrew 2016 - Forum software by © MyBB